shadow.sk Posted November 28, 2011 Posted November 28, 2011 Heya! I want to request a new command like @cash. I am using @cash for donors. is someone can help me? The new command will work exactly like cash does... At command: #v4point shadow.sk 10 In npc: prontera,69,69,4 v4point Kafra Hat 4 Points 123,{ Thank you in advance and any help will be appreciated Quote
Sneaky Posted December 7, 2011 Posted December 7, 2011 Well I don't exactly know how to add an exact system but...I could provide some info that may help you if you know how to put it together, I could but honestly I'm don't have RO to test in this computer, but here it is: you could simply add a command that triggers a script label, so it would be something like this: in atcommand.c find: AtCommandInfo atcommand_info[] = { Add BEFORE / Above: /*========================================== * v4points (Trigger a script) *------------------------------------------*/ int atcommand_vpoint(const int fd, struct map_session_data* sd, const char* command, const char* message) { npc_event(sd,"v4points_npc::OnGivePoints",0); return 0; } npc_event(sd,"NPC_NAME::NPC_LABEL",0); find this again: AtCommandInfo atcommand_info[] = { add below: { "v4point", 99,99, atcommand_vpoint }, ---------------------------------------------------------------------------------------------- then you'd just have to add a script / NPC. - script v4points_npc -1,{ end; OnGivePoints: /* <-- SCRIPT GOES HERE --> */ } And to make up the script you could just base up of THIS... I think that's pretty much all you need ^^; Quote
Question
shadow.sk
Heya!
I want to request a new command like @cash.
I am using @cash for donors.
is someone can help me?
The new command will work exactly like cash does...
At command:
#v4point shadow.sk 10
In npc:
Thank you in advance and any help will be appreciated
4 answers to this question
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.