Rebel Posted July 19, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Share 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 Link to comment Share on other sites More sharing options...
Ind Posted July 19, 2012 Group: Members Topic Count: 169 Topics Per Day: 0.03 Content Count: 1260 Reputation: 750 Joined: 11/19/11 Last Seen: April 11, 2013 Share 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 Link to comment Share on other sites More sharing options...
Rebel Posted July 19, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 19, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2371 Joined: 10/28/11 Last Seen: 14 hours ago Share 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 Link to comment Share on other sites More sharing options...
Rebel Posted July 20, 2012 Group: Members Topic Count: 68 Topics Per Day: 0.01 Content Count: 436 Reputation: 32 Joined: 02/19/12 Last Seen: May 22, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
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 razorxLink to comment
Share on other sites
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.