Thread: Donation Script
View Single Post
  #6  
Old 12-25-2001, 04:30 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Re: Donation Script

Quote:
Originally posted by -_Soulhunter_-
How do i make a NPC that looks like a player
or a chest or something.. to
when you say
donate <amount> it saves thoose money
and only i can get them (whit my account name)?
its easy... use this commands:

playerrupees-/+/=/</>
use like if player chats and startswith
like if (startswith(donate, #c)) {
tokenize #c;
if (playerrupees>=#t(1)) {
playerrupees-=#t(1);
server.chestmoney+=#t(1);
}
}

and for the taking part do like:

if startswith(withdraw,#c)&&strequals(#a,account)) {
tokenize #c;
server.chestmoney-=#t(1)
playerrupees+=#t(1)
}
}


that wont work but try use those commands (Yes i know how to makeo e work but i wont bc u have to learn not to get)
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote