![]() |
Donation Script
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)? |
open the level your going to have it in. If you want a npc player do it then select it from the menu. if you want a chest then select the body outline npc then place it where you want it. inside the npc dialog select ur chest image. On both of these you type in your script. That Simple.
|
Quote:
|
Its just a bank with server.strings instead of normal strings and it has a limitation to who can withdraw from it (usually #g or #a)
|
Re: Donation Script
Quote:
|
Re: Donation Script
Quote:
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) |
Quote:
|
Quote:
|
Whats the diffrence between donation thing and the events cup? how does events cup work?
|
events cup - anyone can donate to so it's stored in server flags
|
Quote:
ATM-like version: the amount of ruppes is stored in a string in a players account, so only the player can acces the amount Cup: The Rupees amount is stored in a server width server-string so everyone can detonate rupees if u are doing it P2P u can also use this.strings for the NPC then the cup and detonation-chest can be scripted the same way, because these this.vars are saved in the NPC-database and the NPC can acces it for all players... |
I have the EXACT script you need but the person who made me it on request said dont give it away :)
|
| All times are GMT +2. The time now is 10:20 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.