Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-27-2001, 04:53 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Not sure if this is auto-done or not, but...

~AlphaFlame~

How about an updateweapon weapon-name; script command? Causes the NPC to 'update' itself to the latest in the database.

The database could record the dates an NPC was added, and thereby allow NPCs to be simply have a simple
--->if (created)updateweapon this-weapon-name;
And tada, no worries about having to make every player go back to (enter level here) and get the weapon when you update it.

And if this is already there, excuse my ignorance... 5 a.m. brain storms are always fun.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #2  
Old 12-27-2001, 07:50 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
It get's automattically done when a player logs on, although it would be nice if it could be done when it's updated and the player already is online. (E.G. Add a little line which the server.version with the client.version and then make the system update itself)
__________________

Reply With Quote
  #3  
Old 12-28-2001, 01:03 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
could be done

if (this.version!=server.version) triggeraction 0,0,replaceweapon,;

and in control

if (actionreplaceweapon) addweapon hoe;
Reply With Quote
  #4  
Old 12-28-2001, 01:19 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
When the NPC weapon stored in the database is updated the weapon gets updated. It does it all automatically.
__________________
Eric Kraft
Reply With Quote
  #5  
Old 12-28-2001, 09:27 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes the server only stores one version of the
weapon, so when its updated then other players
get the new weapon script when they login again.
On servers with npcserver the weapons are
stored on the npcserver (that's why you can do
join and have server-side parts there), and when
the weapon is updated it sends the new script
to the players.
On free servers the weapon editing would be possible
too, although a client-side command 'addweapon <name>'
might be too powerful (cheating/hacking), but possible
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 10:47 PM.


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