Jump to content
  • 0
raPalooza~

doevent ::common label?

Question

So....
Is there a way of calling an NPC without setting a specific ::OnLabel?
Does it need to be a function in order to call it?

What I want is to attach the invoker Character to another npc as it has been clicked...


o/

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Yeah there's this option but i meant to call any npc at the server, so i was looking for a way of calling a npc as it was clicked, starting at the top of npc's script like a OnClick: or something like it... ie: attach(NPCNAME,RID)
(adding a OnClick on the first line of every npc script seems a little too much)

Share this post


Link to post
Share on other sites
  • 0

Found a missleading information on the script commands xD
Don't know if it meant to say that when the scripts runs it attaches the RID as it was clicked by the player or it means that the "::OnRun" supposedly runs the npc script as it was clicked (from the start);

Righ now the "OnRun" is just a misleading interpretation, because it doesnt work ;[

*addtimer <ticks>,"NPC::OnLabel";*deltimer "NPC::OnLabel";*addtimercount "NPC::OnLabel",<ticks>;These commands will create, destroy, and delay a countdown timer - 'addtimer' to create, 'deltimer' to destroy and 'addtimercount' to delay it by the specified number of ticks. For all three cases, the event label given is the identifier of that timer. The timer runs on the character object that is attached to the script, and can have multiple instances. When the label is run, it is run as if the player that the timer runs on has clicked the NPC.

When the label is run, it is run as if the player that the timer runs on
has clicked the NPC.

Edited by raPalooza~

Share this post


Link to post
Share on other sites
  • 0
prontera,156,180,5	script	qwer	1_F_MARIA,{	npctalk "I'm qwer";	doevent "asdf::OnClick";	end;}prontera,158,180,5	script	asdf	1_F_MARIA,{OnClick:	npctalk "I'm asdf";	end;}
what are you trying to do actually ? :hmm:

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.