Rebel Posted July 19, 2012 Posted July 19, 2012 (edited) how can i add a @command like @donation to open a shop like calling a script maybe.. i want to use this together with lilith's extended vending system.. thanks. Edited July 20, 2012 by razorx Quote
Ind Posted July 19, 2012 Posted July 19, 2012 in the command code you may use the following to call a npc run_script(npc_name2id("NPCName"))->u.scr.script,0,sd->bl.id,fake_nd->bl.id); Quote
Rebel Posted July 19, 2012 Author Posted July 19, 2012 in the command code you may use the following to call a npc run_script(npc_name2id("NPCName"))->u.scr.script,0,sd->bl.id,fake_nd->bl.id); how can i use that im sorry i dont have the intel to put a custom command.. Quote
Emistry Posted July 19, 2012 Posted July 19, 2012 i think would be like this ACMD_FUNC(donation) { run_script(npc_name2id("NPCName"))->u.scr.script,0,sd->bl.id,fake_nd->bl.id); } Quote
Rebel Posted July 20, 2012 Author Posted July 20, 2012 (edited) ohh thanks ill try it.. i just replace the "NPCNAME" right? @Ind @Emistry http://i45.tinypic.com/xlm0pk.png error please help me with this. i got a error with the code pls tell me what to do. thanks. Solved. Thanks guys. Edited July 20, 2012 by razorx Quote
Question
Rebel
how can i add a @command like
@donation to open a shop like
calling a script maybe..
i want to use this together with lilith's extended vending system.. thanks.
Edited by razorx4 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.