Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Not sure if this is auto-done or not, but... (https://forums.graalonline.com/forums/showthread.php?t=19736)

entravial 12-27-2001 04:53 PM

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.

grim_squeaker_x 12-27-2001 07:50 PM

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)

Faheria_GP2 12-28-2001 01:03 AM

could be done

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

and in control

if (actionreplaceweapon) addweapon hoe;

Er1c 12-28-2001 01:19 AM

When the NPC weapon stored in the database is updated the weapon gets updated. It does it all automatically.

Admins 12-28-2001 09:27 AM

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


All times are GMT +2. The time now is 11:22 AM.

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