Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Donation Script (https://forums.graalonline.com/forums/showthread.php?t=19496)

-_Soulhunter_- 12-23-2001 11:06 PM

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)?

royce 12-23-2001 11:33 PM

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.

Googi 12-25-2001 10:36 AM

Quote:

Originally posted by royce
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.
He wants a script, I used to have the bank script but I lost it x_x

Python523 12-25-2001 11:09 AM

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)

nyghtGT 12-25-2001 01:24 PM

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)?

search in my post history i posted one a while back...

mhermher 12-25-2001 04:30 PM

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)

TDO2000 12-25-2001 08:20 PM

Quote:

Originally posted by Python523
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)
um he said only HE can get this money, so why do u have to use serverstrings? In this fact u can use normal strings...

Python523 12-26-2001 01:46 AM

Quote:

Originally posted by TDO2000


um he said only HE can get this money, so why do u have to use serverstrings? In this fact u can use normal strings...

I thought he ment a donation cup like the events on on graal 2001....

-_Soulhunter_- 12-26-2001 07:50 PM

Whats the diffrence between donation thing and the events cup? how does events cup work?

BruceLee2000 12-26-2001 10:29 PM

events cup - anyone can donate to so it's stored in server flags

TDO2000 12-26-2001 11:10 PM

Quote:

Originally posted by -_Soulhunter_-
Whats the diffrence between donation thing and the events cup? how does events cup work?
(Non P2p)
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...

LordMatt 12-27-2001 12:13 PM

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.