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 08-04-2005, 06:51 PM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
Safe script

if (created||timeout) {
message Tips: #s(server.BHE);
timeout=0.5;
}
if (playerchats&&strequals(#a,Birdwell)||strequals(#a ,Brandons account)||strequals(#a,Dark Dragon Guardian)){}
if (startswith(/take,#c)) {
tokenize #c;
if (strtofloat(#s(server.BHE))>=strtofloat(#t(1))){
if (strtofloat(#t(1))>0){
playerrupees+=strtofloat(#t(1));
setstring server.BHE,#v(strtofloat(#s(server.BHE))-strtofloat(#t(1)));
setplayerprop #c,Took #t(1)!;
message Tips: -#t(1);
sleep 3;
message Tips: #s(server.BHE);
}else setplayerprop #c,Can't take that!;
}}

if (playerchats) {
if (startswith(/tip,#c)){
tokenize #c;
if (playerrupees>=strtofloat(#t(1))){
if (strtofloat(#t(1))>0){
playerrupees-=strtofloat(#t(1));
setstring server.BHE,#v(strtofloat(#s(server.BHE))+strtofloa t(#t(1)));
setplayerprop #c, Tipped #t(1)!;
message Tips: +#t(1);
sleep 3;
message Tips: #s(server.BHE);
}
}
}
the script works but it gives out money to ppl not in the list to be able to take it. help please
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 06:26 AM.


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