Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-23-2001, 11:06 PM
-_Soulhunter_- -_Soulhunter_- is offline
Registered User
Join Date: Nov 2001
Location: Near my computer :D
Posts: 154
-_Soulhunter_- is on a distinguished road
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)?
__________________
Name on Graal - Ferret
Server - Andor, Babylon
Coolest tag - Events Admin
Reply With Quote
  #2  
Old 12-23-2001, 11:33 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to 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.
Reply With Quote
  #3  
Old 12-25-2001, 10:36 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
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
__________________
Reply With Quote
  #4  
Old 12-25-2001, 11:09 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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)
Reply With Quote
  #5  
Old 12-25-2001, 01:24 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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...
Reply With Quote
  #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
  #7  
Old 12-25-2001, 08:20 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #8  
Old 12-26-2001, 01:46 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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....
Reply With Quote
  #9  
Old 12-26-2001, 07:50 PM
-_Soulhunter_- -_Soulhunter_- is offline
Registered User
Join Date: Nov 2001
Location: Near my computer :D
Posts: 154
-_Soulhunter_- is on a distinguished road
Whats the diffrence between donation thing and the events cup? how does events cup work?
__________________
Name on Graal - Ferret
Server - Andor, Babylon
Coolest tag - Events Admin
Reply With Quote
  #10  
Old 12-26-2001, 10:29 PM
BruceLee2000 BruceLee2000 is offline
TONYMONTANA
BruceLee2000's Avatar
Join Date: Mar 2001
Location: T E X A S
Posts: 1,514
BruceLee2000 will become famous soon enough
events cup - anyone can donate to so it's stored in server flags
__________________
-T O N Y



much thanks to XDaKreepX for the sig
Reply With Quote
  #11  
Old 12-26-2001, 11:10 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #12  
Old 12-27-2001, 12:13 PM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
I have the EXACT script you need but the person who made me it on request said dont give it away
__________________
-Matt
Reply With Quote
Reply


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 10:38 PM.


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