doevent ::common label?

raPalooza~

New member
Messages
76
Points
0
Age
36
Location
Innovation
Emulator
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/

 
Make a label in that npc at the very start line, and call that label, as simple as that.

 
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)

 
Make a floating npc then use diplicate
default_smile.png


//edit

on the other this will not work if you want just any npc.

 
Last edited by a moderator:
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.


 
Last edited by a moderator:
Code:
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 ?
default_hmm.gif
 
Back
Top