Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Does this sound right? (https://forums.graalonline.com/forums/showthread.php?t=26234)

Saga2001 03-24-2002 08:08 PM

Does this sound right?
 
If you have an NPCW in the weapons database, and you have a triggeraction to the weapon and that action is server-side and has with() stuff in it, does the first parameter of the triggeraction have to be the weapon name?

Cybnext_Design 03-25-2002 10:07 AM

Re: Does this sound right?
 
Quote:

Originally posted by Saga2001
If you have an NPCW in the weapons database, and you have a triggeraction to the weapon and that action is server-side and has with() stuff in it, does the first parameter of the triggeraction have to be the weapon name?
I believe it is like that because you can trigger other weapons using triggeraction that way.

Saga2001 03-25-2002 05:06 PM

Re: Re: Does this sound right?
 
Quote:

Originally posted by Cybnext_Design


I believe it is like that because you can trigger other weapons using triggeraction that way.

kool, thanks.

screen_name 03-25-2002 09:42 PM

triggeraction 0,0,serverside,WeaponName,extraparameter(s);


the weapon name isn't read as a parameter

SaijinGohan 04-12-2002 07:10 AM

right.. like here is a script of an example

NPC Code:

if (actionserverside) {
if (strequals(#p(0),warp)) {
with(getplayer(#p(1))) {
setlevel onlinestartlocal.graal;
}
}
}
//#CLIENTSIDE
if (playerchats && strequals(#c,baaaaaa)) {
player = bob;
triggeraction 0,0,serverside,System,warp,#v(player);
}



All times are GMT +2. The time now is 06:16 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.