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 01-12-2009, 08:08 PM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
Wink My Scripting Problem.

Hello, I am working on a Shop Safe Script and it functions perfectly, but when you update the level or edit it with graal editor, it resets automatically to 0. I Need some help on this please for all you excellent scripters out there.

Here is the script.

//Scripted By Jamerson61894!
if (created) {
}
if (playertouchsme) {
}
if (playerchats && strcontains(#c,/deposit)){
tokenize #c;
this.rupeeadd = strtofloat(#t(1));
if (playerrupees >= this.rupeeadd){
if (this.rupeeadd > 0){
playerrupees -= this.rupeeadd;
this.safemoney += this.rupeeadd;
setcharprop #c,#v(this.safemoney) dollars in safe!;
}
}
}

if (playerchats && strcontains(#c,/withdraw)){
tokenize #c;
this.takemoney = strtofloat(#t(1));
if (this.safemoney >= this.takemoney){
if (this.takemoney > 0){
if (strequals(#a,GULTHEX)){

playerrupees += this.takemoney;
this.safemoney -= this.takemoney;
setplayerprop #c, Took #v(this.takemoney) dollars out of safe!;
setcharprop #c, #v(this.safemoney) dollars in safe!
}
}
}
}
if (playerchats && strcontains(#c,/balance)){
tokenize #c;
setcharprop #c, #v(this.safemoney) dollars in safe!
}
if (timeout){
setcharprop #c, ;}



If you could help me fix the problem with the update level part, I would be most greatful.

Thanks,

-Jamerson61894
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:50 PM.


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