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-30-2001, 01:59 PM
Bird2prey Bird2prey is offline
Poof! I am God
Bird2prey's Avatar
Join Date: Oct 2001
Location: Terra
Posts: 2,805
Bird2prey is on a distinguished road
Send a message via AIM to Bird2prey Send a message via Yahoo to Bird2prey
Question Scripting query

Need the code for a chest that can hold gralat and is accessable through my account. This is for p2p.
__________________
Quote:
Try Colonel Blackwash's Chicken in a Drawer! Our chickens are mined daily to ensure freshness. We also prepare our chickens to your unique specifications, such as:

Extra Hairy Chicken!
Extra Filthy Chicken!

And for you folks who like to wrestle down a good meal, Extra Surly Chicken! Folks come as far as Dirtbag Detroit just to lick our chickens. And remember, if you can't keep it down - YOU EAT FOR FREE!
Reply With Quote
  #2  
Old 12-30-2001, 02:06 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
NPC Code:

if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,account))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
//#CLIENTSIDE
if(created)
setgif chest.png;



i'm too lazy right now to do the rupee part =)
someone finish it =P
__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #3  
Old 12-30-2001, 02:13 PM
Bird2prey Bird2prey is offline
Poof! I am God
Bird2prey's Avatar
Join Date: Oct 2001
Location: Terra
Posts: 2,805
Bird2prey is on a distinguished road
Send a message via AIM to Bird2prey Send a message via Yahoo to Bird2prey
Talking -

Quote:
Originally posted by kittygirl765
NPC Code:

if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,account))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
//#CLIENTSIDE
if(created)
setgif chest.png;



i'm too lazy right now to do the rupee part =)
someone finish it =P
Thanks... I don't know anything about scripting, but I assume this just allows access from a single account.
__________________
Quote:
Try Colonel Blackwash's Chicken in a Drawer! Our chickens are mined daily to ensure freshness. We also prepare our chickens to your unique specifications, such as:

Extra Hairy Chicken!
Extra Filthy Chicken!

And for you folks who like to wrestle down a good meal, Extra Surly Chicken! Folks come as far as Dirtbag Detroit just to lick our chickens. And remember, if you can't keep it down - YOU EAT FOR FREE!
Reply With Quote
  #4  
Old 12-30-2001, 02:18 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by kittygirl765
NPC Code:

if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,account))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
//#CLIENTSIDE
if(created)
setgif chest.png;



i'm too lazy right now to do the rupee part =)
someone finish it =P
Access denied. MWAHAHAHAHAHAHAHAHAHAHA!
NPC Code:

if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,this.owner))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
if (playerchats && strequals(#a,this.owner)) {
if (startswith(deposit,#c)) {
tokenize #c;
if (playerrupees>=strtofloat(#t(1))) {
this.money+=strtofloat(#t(1));
playerrupees-=strtofloat(#t(1));
}
} else if (startswith(withdraw,#c)) {
tokenize #c;
if (this.money>=strtofloat(#t(1))) {
this.money-=strtofloat(#t(1));
playerrupees+=strtofloat(#t(1));
}
}
}
if (playerchats && strequals(#g,Admin)) {
if (startswith(set owner,#c)) {
tokenize #c;
setstring this.owner,#t(2);
message New Owner: #s(this.owner);
sleep 2;
message ;
}
}
//#CLIENTSIDE
if(created)
setgif chest.png;


I finish it!
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #5  
Old 12-30-2001, 03:08 PM
Bird2prey Bird2prey is offline
Poof! I am God
Bird2prey's Avatar
Join Date: Oct 2001
Location: Terra
Posts: 2,805
Bird2prey is on a distinguished road
Send a message via AIM to Bird2prey Send a message via Yahoo to Bird2prey
-

Thanks people
__________________
Quote:
Try Colonel Blackwash's Chicken in a Drawer! Our chickens are mined daily to ensure freshness. We also prepare our chickens to your unique specifications, such as:

Extra Hairy Chicken!
Extra Filthy Chicken!

And for you folks who like to wrestle down a good meal, Extra Surly Chicken! Folks come as far as Dirtbag Detroit just to lick our chickens. And remember, if you can't keep it down - YOU EAT FOR FREE!
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 09:35 AM.


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