Diconfrost VaNz Posted November 20, 2011 Posted November 20, 2011 Vengeance made me this custom commands...the problem is this... when i try to type it... it only show this "You have now been warped to the Mall" but nothing happens, i stay in the place where i am. ACMD_FUNC(mall) { nullpo_retr(-1, sd); pc_setpos(sd, "force_3-2", 19, 177, CLR_TELEPORT); clif_displaymessage(fd, "You have now been warped to the Mall"); return 0; } { "mall", 10,10, atcommand_mall }, Quote
0 Emistry Posted November 20, 2011 Posted November 20, 2011 well, this is my way to create this type of stuffs..xD /*-----------* * @mall *-----------*/ int atcommand_mall(const int fd, struct map_session_data *sd, const char *command, const char *message) { nullpo_retr(-1,sd); npc_event(sd,"Mall::OnWarp",0); return 0; } then create this NPC script - script Mall -1,{ OnWarp: message strcharinfo(0),"You have been warped to Mall."; warp "mapname",0,0; end; } Quote
0 Diconfrost VaNz Posted November 20, 2011 Author Posted November 20, 2011 oh thanks...that one works can i transform it into @quest command by changing npc_event(sd,"Quest::OnWarp",0); Quote
0 Emistry Posted November 20, 2011 Posted November 20, 2011 (edited) /*-----------* * @Custom *-----------*/ int atcommand_Custom(const int fd, struct map_session_data *sd, const char *command, const char *message) { nullpo_retr(-1,sd); npc_event(sd,"Custom::OnCustom",0); return 0; } - script Custom -1,{ OnCustom: <content> end; } change every single Custom that i write in above basically, this command just run the specific part / Label of NPC script you have mentioned in the SRC there Edited November 20, 2011 by Emistry Quote
0 KeiKun Posted November 20, 2011 Posted November 20, 2011 /*-----------* * @Custom *-----------*/ int atcommand_Custom(const int fd, struct map_session_data *sd, const char *command, const char *message) { nullpo_retr(-1,sd); npc_event(sd,"Custom::OnCustom",0); return 0; } - script Custom -1,{ OnCustom: <content> end; } change every single Custom that i write in above basically, this command just run the specific part / Label of NPC script you have mentioned in the SRC there int_atcommand is OLD one use ACMD_FUNC() Quote
Question
Diconfrost VaNz
Vengeance made me this custom commands...the problem is this...
when i try to type it...
it only show this
"You have now been warped to the Mall"
but nothing happens, i stay in the place where i am.
7 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.