xfvvvv 發表於 2011-6-12 23:30:59

attachallplayers

此代码非原创.

BUILDIN_FUNC(attachallplayers)
{
struct map_session_data *sd;
struct s_mapiterator* iter;
const char* event = script_getstr(st,2);
iter = mapit_getallusers();
while( (sd = (TBL_PC*)mapit_next(iter)) != NULL ) {
check_event(st, event);
npc_event_do(event);
}
return 0;
}



BUILDIN_DEF(attachallplayers,"s"),


使用方法

attachallplayers "IamOnline::OnSendWhisp";
頁: [1]
查看完整版本: attachallplayers