Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-08-2001, 02:06 PM
Grey_Mage Grey_Mage is offline
Registered User
Join Date: Mar 2001
Location: Graal
Posts: 72
Grey_Mage is on a distinguished road
Send a message via AIM to Grey_Mage Send a message via Yahoo to Grey_Mage
Unhappy

if (playerenters) timeout = .25;
safeamount=strtofloat(#s(safeaccount));
if (timeout) {
if (rupees>0){
safeamount=strtofloat(#s(safeaccount))+rupees;
setstring safeaccount,#v(safeamount);
rupees=0;
}
timeout =.05;
}

if (playersays(withdraw all) && isleader) {
safeamount=strtofloat(#s(safeaccount));
playerrupees+=bankamount;
safeamount=0;
setstring safeaccount,#v(safeamount);
}

if (playersays(deposit all) && isleader) {
safeamount=strtofloat(#s(safeaccount))+playerrupee s;
playerrupees-=playerrupees;
setstring safeaccount,#v(safeamount);
}

I am trying to make it where only CERTIAN PEOPLE(accout names, guild tags. etc ,ect) can get the money out... I also want to make it where this is in a store and when you buy something the money you bought it with is transfered to the safe so you can take it out later!! Can anyone help me???? PLEASE???????
__________________

Quote:
Mess with the best, die like the rest...

Last edited by Grey_Mage; 04-08-2001 at 02:11 PM..
Reply With Quote
  #2  
Old 04-09-2001, 02:13 AM
Grey_Mage Grey_Mage is offline
Registered User
Join Date: Mar 2001
Location: Graal
Posts: 72
Grey_Mage is on a distinguished road
Send a message via AIM to Grey_Mage Send a message via Yahoo to Grey_Mage
Please Answer!!!

Some has gotta know how to do this?!?
__________________

Quote:
Mess with the best, die like the rest...
Reply With Quote
  #3  
Old 04-09-2001, 02:16 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
I did a nice shopkeeper script a while ago that did this......I don't wanna go dig it up though. Just do
setstring string, #v(strtofloat(string)+rupees);
rupees=0;
and uh...er...maybe that wouldn't work...you'd either need a server string, or pay-server and a this.string...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:02 AM.


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