Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-14-2006, 09:53 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
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?
Reply With Quote
  #2  
Old 05-14-2006, 10:00 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Script your own chests; they would no doubt be more useful and flexible were you to do so.
__________________
Skyld
Reply With Quote
  #3  
Old 05-14-2006, 10:28 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
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.
Reply With Quote
  #4  
Old 05-15-2006, 02:21 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 05-15-2006, 05:30 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
If nothing else works, make an NPC that locks them down until they drop the offending chest-weapons.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #6  
Old 05-15-2006, 07:25 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by ApothiX
make a NPCW called 'Bow' and put:
That should work, I'll test it at home.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:41 AM.


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