idLaZ Posted April 2, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 93 Reputation: 6 Joined: 12/10/11 Last Seen: September 28, 2024 Share Posted April 2, 2019 (edited) Magandang araw mga tropa, may script kasi akong pinapagana and kailangan ng mobevent function. May nakita ako galing sa eAmod na mobevent function, eto: /*========================================== * Cdigo Zephyrus para mob con IDdeParty para Map Dominacion *------------------------------------------*/ BUILDIN_FUNC(mobevent) { int class_,size,amount,x,y,partyid,mostrarhp,hpmas,allied,noslaves,noexpnodrop,k,iswar,exp_boost,drop_boost; int item_drop, item_amount; const char *str,*map,*event=""; map = script_getstr(st,2); x = script_getnum(st,3); y = script_getnum(st,4); str = script_getstr(st,5); class_ = script_getnum(st,6); size = script_getnum(st,7); amount = script_getnum(st,8); partyid = script_getnum(st,9); mostrarhp = script_getnum(st,10); hpmas = script_getnum(st,11); allied = script_getnum(st,12); noslaves = script_getnum(st,13); noexpnodrop = script_getnum(st,14); item_drop = script_getnum(st,15); item_amount = script_getnum(st,16); iswar = script_getnum(st,17); exp_boost = script_getnum(st,18); drop_boost = script_getnum(st,19); if( script_hasdata(st,20) ) { event = script_getstr(st,20); check_event(st, event); } if( class_ >= 0 && !mobdb_checkid(class_) ) { ShowWarning("buildin_monster: Attempted to spawn non-existing monster class %d\n", class_); return 1; } k = mob_once_spawn_especial(map_id2sd(st->rid),map,x,y,str,class_,amount,event,hpmas,size,allied,noslaves,0,mostrarhp,0,0,noexpnodrop,partyid,item_drop,item_amount,iswar,exp_boost,drop_boost); script_pushint(st,1); // Confirmando creacion return 0; } Wala kayang mangyaring mapcrash in the future kung sakaling ipasok ko sa latest version ng rathena and mag work? Thank you. Edited April 2, 2019 by idLaZ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.