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 08-25-2006, 03:36 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Requesting your opinion.

With the mudlib system I am currently using per bullet shot reupdates the loaded variable in the mudlib (for loaded ammo to pass throughout guns).

With only 14 players I am hitting:
1. 0.427805 % +Guns
1. 0.171186666 % +Guns
1. 0.806798333 % +Guns
1. 0.60478 % +Guns

Does anyone have any idea on how I should do this to keep it the same style I am using? I was thinking only trigger to the server for every 5 bullets shot or something to reupdate it - but that would cause people to log on a 4th shot to regain there ammo or something of the sort.. so yeah - help appreciated.

(I also can probally make it update your ammo when you unequip the gun but that wouldn't help if someone logs off with it on)

*Edit* After having 6 people fire continiuously for a minute:
1. 1.130478333 % +Guns
Reply With Quote
  #2  
Old 08-25-2006, 04:29 AM
BigNoobie BigNoobie is offline
I am Tig.
Join Date: Aug 2006
Posts: 13
BigNoobie is on a distinguished road
Send a message via AIM to BigNoobie
Maybe just set a this. string with the value of the amount of bullets they have, then on the GUI show the this.string, then when the gun is unequipped/they log off, it triggers the server to save the this.string as the the bullets.
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 02:37 PM.


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