Jump to content
  • 0

[SOLVED] using @command to call a script


Rebel

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.01
  • Content Count:  436
  • Reputation:   32
  • Joined:  02/19/12
  • Last Seen:  

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 razorx
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  169
  • Topics Per Day:  0.03
  • Content Count:  1260
  • Reputation:   750
  • Joined:  11/19/11
  • Last Seen:  

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);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.01
  • Content Count:  436
  • Reputation:   32
  • Joined:  02/19/12
  • Last Seen:  

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.. :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2371
  • Joined:  10/28/11
  • Last Seen:  

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);
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.01
  • Content Count:  436
  • Reputation:   32
  • Joined:  02/19/12
  • Last Seen:  

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 by razorx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...