Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Script Help (https://forums.graalonline.com/forums/showthread.php?t=1143)

Grey_Mage 04-08-2001 02:06 PM

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???????

Grey_Mage 04-09-2001 02:13 AM

Please Answer!!!
 
Some has gotta know how to do this?!?

kyle0654 04-09-2001 02:16 AM

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...


All times are GMT +2. The time now is 02:50 AM.

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