java
New member
- Messages
- 22
- Points
- 0
- Emulator
- Hercules
hi i just try to modify @dance hehe
to install this plugin maybe u must read at wiki 1st ( if new to hercules )
for windows go to : http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC
and for unix go to : http://herc.ws/wiki/Building_HPM_Plugin_for_gcc
and this is the source code for @dance
#include <stdio.h>#include <string.h>#include "../common/HPMi.h"#include "../map/script.h"#include "../map/pc.h"HPExport struct hplugin_info pinfo ={ "@dance", // Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "0.1b", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated)};//===modified by jetkappu==ACMD(dance){int msg;msg = rand()%9;if ( msg == 1 || msg == 0) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 413, ALL_CLIENT);} else if ( msg == 2 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 414, ALL_CLIENT);} else if ( msg == 3 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 415, ALL_CLIENT);} else if ( msg == 4 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 426, ALL_CLIENT);} else if ( msg == 5 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 458, ALL_CLIENT);} else if ( msg == 6 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 466, ALL_CLIENT);} else if ( msg == 7 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 501, ALL_CLIENT);} else if ( msg == 8 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 540, ALL_CLIENT);} else if ( msg == 9 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 550, ALL_CLIENT);}return true;}/* Server Startup */HPExport void plugin_init (void){ clif = GET_SYMBOL("clif"); script = GET_SYMBOL("script"); skill = GET_SYMBOL("skill"); HPMi->addCommand("dance",ACMD_A(dance));}
that's just tiny modification, i make this just for fun, so ur player won't got bored when using @dance continously hehe
and then diff ur hexed, so u and ur player can spam typing to ex : 10 times
note: i just modify it, credit goes to owner.. ( i think this source made by onplay ) if im not wrong
to install this plugin maybe u must read at wiki 1st ( if new to hercules )
for windows go to : http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC
and for unix go to : http://herc.ws/wiki/Building_HPM_Plugin_for_gcc
and this is the source code for @dance
#include <stdio.h>#include <string.h>#include "../common/HPMi.h"#include "../map/script.h"#include "../map/pc.h"HPExport struct hplugin_info pinfo ={ "@dance", // Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "0.1b", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated)};//===modified by jetkappu==ACMD(dance){int msg;msg = rand()%9;if ( msg == 1 || msg == 0) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 413, ALL_CLIENT);} else if ( msg == 2 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 414, ALL_CLIENT);} else if ( msg == 3 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 415, ALL_CLIENT);} else if ( msg == 4 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 426, ALL_CLIENT);} else if ( msg == 5 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 458, ALL_CLIENT);} else if ( msg == 6 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 466, ALL_CLIENT);} else if ( msg == 7 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 501, ALL_CLIENT);} else if ( msg == 8 ) { clif->specialeffect(&sd->bl, 300, ALL_CLIENT); clif->specialeffect(&sd->bl, 540, ALL_CLIENT);} else if ( msg == 9 ) { clif->specialeffect(&sd->bl, 400, ALL_CLIENT); clif->specialeffect(&sd->bl, 550, ALL_CLIENT);}return true;}/* Server Startup */HPExport void plugin_init (void){ clif = GET_SYMBOL("clif"); script = GET_SYMBOL("script"); skill = GET_SYMBOL("skill"); HPMi->addCommand("dance",ACMD_A(dance));}
that's just tiny modification, i make this just for fun, so ur player won't got bored when using @dance continously hehe
and then diff ur hexed, so u and ur player can spam typing to ex : 10 times
note: i just modify it, credit goes to owner.. ( i think this source made by onplay ) if im not wrong
Last edited by a moderator:


