Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2002, 07:16 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
I need help with money system

Hi, can anyone help me with this?
I knwo there aint any commands like playerlaysgoldrupee or stuff,
btu i need it to work that if you lay an goldrupee client.string will reduce with 100 and same with toehr rupees

heres what i got so far
[CODE]// NPC made by GÄ$†£Ÿ -Testing-
if (playerenters) {
toweapons -moneysystem;
}
if (timeout) {
playerrupees=client.money;
}
timeout=0.05;
if (timeout) {
if (playerlaysgoldrupee&&client.money>99) {
client,money-=100;
}
if (playerlaysredrupee&&client.money>29) {
client,money-=30;
}
if (playerlaysgreenrupee&&client.money>0) {
client,money-=1;
}
if (playerlaysbluerupee&&client.money>4) {
client,money-=5;
}
}CODE]


ANd its not gonna use putNPC cuz its p2p and it will cause lag with gralat system, so is there a way to do it? that if you drop 1 gold rupee client.money will reduce with 100


Thanks
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
 


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 04:16 PM.


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