EVENT_HP
Here's an example on how you can use it :
Code:
sub EVENT_SPAWN setnexthpevent(hp) is a command to fix at which hp ratio of the npc the next HP_EVENT will be triggered, in the example it is 80% and there is 2 variables : $hpevent and $hpratio $hpevent identifies the event you have to use setnexthpevent(0) when there is no other hp event to implement this you have to change all this : in mob.h : in the class Mob, just before the protected word : ~line 623 : Code:
// HP Event Code:
// HP Event in the function : --void Mob::CreateHPPacket(APPLAYER* app, bool sendself) -- where you see : Quote:
Quote:
at the end of the file add this : Quote:
at the end of the function : "void Parser::ExCommands(string command, string parms, int argnums, int32 npcid, Mob* other, Mob* mob )" ~ line 1223 : after : Code:
else if (!strcmp(strlwr(command),"rebind")) { Code:
// HP Event now in embparser.cpp : in the function : "void PerlembParser::Event(int event, int32 npcid, const char * data, Mob* npcmob, Mob* mob)" ~ line 215 after the case EVENT_SPAWN for example : add this : Code:
// HP_Event in function : "void PerlembParser::map_funs(void) const" between myra and scorpious2k comments for example =) add this : Code:
// HP Event add this at the end : Quote:
|
All times are GMT -4. The time now is 12:40 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.