Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-13-2001, 04:57 AM
SlayerOfDarkness SlayerOfDarkness is offline
Registered User
Join Date: Nov 2001
Location: I kinda forgot
Posts: 24
SlayerOfDarkness is on a distinguished road
Send a message via ICQ to SlayerOfDarkness Send a message via AIM to SlayerOfDarkness Send a message via Yahoo to SlayerOfDarkness
Question Bar Store Script

Hi I'm making a bar for my server. I made it so far except the part when the money goes in the chest. I'd greatly appreciate it if someone help me. Heres the system script of the bar:

// NPC made by heX (Owner)
if (playerenters) {

}
if (playertouchsme) {
say 0;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 1))) {
putnpc beer.gif,beer.txt,30,17;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 2))) {
putnpc beer.gif,beer.txt,30,21;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 3))) {
putnpc beer.gif,beer.txt,33,24;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 4))) {
putnpc beer.gif,beer.txt,41,24;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 5))) {
putnpc beer.gif,beer.txt,46,21;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell 6))) {
putnpc beer.gif,beer.txt,46,17;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 1))) {
putnpc beer.gif,beer.txt,30,17;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 2))) {
putnpc beer.gif,beer.txt,30,21;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 3))) {
putnpc beer.gif,beer.txt,33,24;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 4))) {
putnpc beer.gif,beer.txt,41,24;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 5))) {
putnpc beer.gif,beer.txt,46,21;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell 6))) {
putnpc beer.gif,beer.txt,46,17;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 1))) {
putnpc beer.gif,beer.txt,30,17;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 2))) {
putnpc beer.gif,beer.txt,30,21;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 3))) {
putnpc beer.gif,beer.txt,33,24;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 4))) {
putnpc beer.gif,beer.txt,41,24;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 5))) {
putnpc beer.gif,beer.txt,46,21;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell 6))) {
putnpc beer.gif,beer.txt,46,17;
}

if (strequals(#g, Owner)&&(strequals(#c, Free Sell))) {
putnpc beer.gif,beerfree.txt,30,17;
putnpc beer.gif,beerfree.txt,30,21;
putnpc beer.gif,beerfree.txt,33,24;
putnpc beer.gif,beerfree.txt,41,24;
putnpc beer.gif,beerfree.txt,46,21;
putnpc beer.gif,beerfree.txt,46,17;
}
if (strequals(#g, Owner)&&(strequals(#c, Sell All))) {
putnpc beer.gif,beer.txt,30,17;
putnpc beer.gif,beer.txt,30,21;
putnpc beer.gif,beer.txt,33,24;
putnpc beer.gif,beer.txt,41,24;
putnpc beer.gif,beer.txt,46,21;
putnpc beer.gif,beer.txt,46,17;
}
if (strequals(#g, GTManager)&&(strequals(#c, Sell All))) {
putnpc beer.gif,beer.txt,30,17;
putnpc beer.gif,beer.txt,30,21;
putnpc beer.gif,beer.txt,33,24;
putnpc beer.gif,beer.txt,41,24;
putnpc beer.gif,beer.txt,46,21;
putnpc beer.gif,beer.txt,46,17;
}
if (strequals(#g, GTStaff)&&(strequals(#c, Sell All))) {
putnpc beer.gif,beer.txt,30,17;
putnpc beer.gif,beer.txt,30,21;
putnpc beer.gif,beer.txt,33,24;
putnpc beer.gif,beer.txt,41,24;
putnpc beer.gif,beer.txt,46,21;
putnpc beer.gif,beer.txt,46,17;
}
[B]
if (itemlayed) {
take greenrupee;take redrupee;take bluerupee;take goldrupee;
}
if(strequals(#g,Owner)&&strequals(#c,Take Donation)){playerrupees=playerrupees+rupees; rupees=0;}
if(strequals(#g,Owner)&&strequals(#c,See Donations)){message #v(rupees) Gralat; sleep2; message ;}

Im having a problem with the item layed part:

if (itemlayed) {
take greenrupee;take redrupee;take bluerupee;take goldrupee;
}

Here is the beer script (beer.txt):

if (playertouchsme&&(playerrupees>4))
{playerrupees-=5;
show;
setplayerprop #c, Ah! Fells good!;
lay2 bluerupee,0,0;
sleep .5;
putleaps 5,x+0.5,y+0;
hide;
playerhearts+=3;
}

Please someone I really need your help!

Email it to me if you wish at [email protected]
Reply With Quote
 


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 01:21 PM.


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