Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   chest weapons (https://forums.graalonline.com/forums/showthread.php?t=66035)

excaliber7388 05-14-2006 09:53 PM

chest weapons
 
I've recently started putting the weapons of DR in folders, in doing so, however, I've come across a problem. I cannot use removeweapon to remove weapons that were picked up by chests, except by hand. Any suggestions?

Skyld 05-14-2006 10:00 PM

Script your own chests; they would no doubt be more useful and flexible were you to do so.

excaliber7388 05-14-2006 10:28 PM

Yeah, I know, but when I first made DR I made it with the chests from the editor, predefined. So now, people have weapons that canme from chests, and I want to replace them with my own scripted versions, because I want them to be in folders in the player's inventory.

ApothiX 05-15-2006 02:21 PM

make a NPCW called 'Bow' and put:

PHP Code:

if(actionserverside) {
  
addweapon New-Bow;
  
removeweapon Bow;
}

//#CLIENTSIDE
if(created) {
  
triggeraction 0,0,serverside,Bow,;


or something. Do that for each of the weapons picked up by NPCs, and replace them with scripted versions.

Tyhm 05-15-2006 05:30 PM

If nothing else works, make an NPC that locks them down until they drop the offending chest-weapons.

excaliber7388 05-15-2006 07:25 PM

Quote:

Originally Posted by ApothiX
make a NPCW called 'Bow' and put:

That should work, I'll test it at home.


All times are GMT +2. The time now is 01:19 AM.

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