Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Call Weapon... (https://forums.graalonline.com/forums/showthread.php?t=21199)

BlKnight 01-15-2002 08:56 AM

Call Weapon...
 
Callweapon use. No idea how to use, please explain...Grim Squeaker, I know oyu had that old weapons changer script, could you post it? I never learned how to use callweapon and I need to...

LiquidIce00 01-15-2002 10:51 AM

change a weapon do something like
NPC Code:

//find and make current weapon
if (!strequals(#w,*Net)&&weaponsenabled) {
for (this.i=0;this.i<weaponscount;this.i++) {
if (strequals(#w(this.i),*Net)) { selectedweapon=this.i; this.i=weaponscount+1; }
}
}



callweapon is like callnpc

make a weapon that has like
NPC Code:

if (killplayer) { playerhearts=0; }



then make a thing that calls it

NPC Code:

if (playertouchsme) {
for (this.i=0;this.i<weaponscount;this.i++) {
callweapon this.i,killplayer;
}
}


BlKnight 01-15-2002 11:04 AM

K thanx, never need to use it, so I didn't know ;)


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

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