![]() |
if (actionblahblahblah) question.
Now, on NPCServer servers, there are various "actions"
I want to know how to "create" those actions. Like, when someone uses the apple seed NPCW, it "does" the action "actionseed" But how? |
hmm this "actions" atre from triggeractions.. example..
you put this script clientsided; triggeraction 0,0,serverwarp,#a,onlienstartlocal.graal,30,30; on your npc control you can have: if (actionserverwarp){ with(getplayer(#p(0))){setlevel2 #p(1),strtofloat(#p(2)),strtofloat(#p(3))} } see? you put "action<something>" for triggeractions <x>,<y>,<something>,<param 1>.... |
Triggeraction.
example: [/code] if (actionserverside){ do stuffs; } //#CLIENTSIDE if (weaponfired){ triggeraction 0,0,serverside,Apple Seed,; } [/code] Explaination: The triggeraction in this NPC Weapon works like this: NPC Code: In this case, you don't really need an x/y, so I set it to 0. I put serverside to trigger the action SERVERSIDE. Hence the actionserverside above the clientside part of the script. params, I'll explain them when you need them. They're tidbits of information, read by #p(NUMBER OF PARAM); ANYWAYS. Another example of triggeraction: NPC Code: Explaination: NPC Code: Again, X/Y is the X/Y you want to trigger this action. The action name is seen in (actionseed). Then there are params again. IMPORTANT The ACTON-whatevers are Case sensitive. For instance, if you had WeAPon as the NPC Weapon name: you would have to use triggeraction 0,0,serverside,WeAPon,; in order for it to work. Hope it helped. |
Quote:
|
There is others that isnt triggeraction like:
actionleftmouse actionmiddlemouse actionrightmouse actiondoublemouse actionpushed actionpulled |
Quote:
|
Quote:
|
Quote:
|
So would this help?
if (actionleftmouse) message Left Click; if (actionmiddlemouse) message Middle Button Click; if (actionrightmouse) message Right Click; if (actiondoublemouse) message Double Click; |
I assume that since it starts with if (action...) then those certain mouse commands use triggeractions then... perhaps... who knows, oh well. but yes, you can do server or clientside triggeractions. server ones are VERY useful, but sometimes you need client ones for things such as an HP sys etc.
---Shifter |
Quote:
It's just NPC Code: |
LOL! I am QUITE aware of that =P I was SAYING that perhaps the mouse commands use triggeraction ;) comparing it... nvm then ;)
---Shifter |
Quote:
|
| All times are GMT +2. The time now is 07:55 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.