Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   To Fatheria_GP2 / Supersonic (https://forums.graalonline.com/forums/showthread.php?t=17440)

RpgWarrior-Online 11-20-2001 10:49 PM

To Fatheria_GP2 / Supersonic
 
hey that script you sent me dont work at all,
can you fix it and test it, and then send me the right one ??

Spark910 11-21-2001 01:53 AM

E-mail / Pm him dont clog up the boards! And also tell him to test his scripts if he can before finnaly submitting them to be used on the server!

Faheria_GP2 11-21-2001 06:10 AM

bleh! i did it in 5 minutes! what do you expect?!

Faheria_GP2 11-21-2001 06:52 AM

ok, here is the corrected version!
NPC Code:

if (playerchats) {
tokenize #c;
if (strequals(#c,Donate #t(1)) && strequals(#t(1),#v(strtofloat(#t(1)))) && strtofloat(#t(1))>0 && playerrupees>=strtofloat(#t(1))) {
playerrupees-=strtofloat(#t(1));
rupees+=strtofloat(#t(1));
}
if (strequals(#c,Withdraw #t(1)) && strequals(#t(1),#v(strtofloat(#t(1)))) && strtofloat(#t(1))>0 && rupees>=strtofloat(#t(1))) {
if (strequals(#a,SupersonicII)) { //Change this line to your account name
playerrupees+=strtofloat(#t(1));
rupees-=strtofloat(#t(1));
}else{
say2 Your account (#a) is not #bauthorized to withdraw!;
}
}
}


Falcor 11-21-2001 08:11 AM

Donations, har har


All times are GMT +2. The time now is 04:49 AM.

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