Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2001, 04:31 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Bars and Beer

I am a Super stupid Scripting Noob.. Not really but i cant figure out to make it so you say "Buy Drink" and it takes a graley off yer account and gives you a drink....And then the drink fills up health.. I R DUMB :grrr:
__________________

Reply With Quote
  #2  
Old 08-31-2001, 04:33 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Re: Bars and Beer

Quote:
Originally posted by Rone
I am a Super stupid Scripting Noob.. Not really but i cant figure out to make it so you say "Buy Drink" and it takes a graley off yer account and gives you a drink....And then the drink fills up health.. I R DUMB :grrr:
you aint kidding
here it is anyway

put this in the beer gfx

if (playerenters) {hide}
if (playersays(buy beer)&&playerrupees>0) {
playerrupees-=1;
show;
}
if (playertouchsme) {
playerhearts+=1}
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 08-31-2001, 04:38 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Thanks for trying.. but when i say buy beer.. he doesn't lay a beer.. he only apears.. before you say buy beer.. he is inviz
__________________

Reply With Quote
  #4  
Old 08-31-2001, 04:42 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
put the script in the beer gfx
it does work
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #5  
Old 08-31-2001, 04:49 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Ok.. but now when i touch the beer it wont heal.. it just drains money.. and never disaperared
__________________

Reply With Quote
  #6  
Old 08-31-2001, 04:52 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
It heals.. but just stays there and everytime you touch it it takes 1 gralet
__________________

Reply With Quote
  #7  
Old 08-31-2001, 04:52 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
arh hold on ill fix it
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #8  
Old 08-31-2001, 04:54 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
if (playerenters) {hide}
if (playersays(buy beer)&&playerrupees>0) {
playerrupees-=1;
show;
}
if (playertouchsme) {
playerhearts+=1;
hide;}

there that'll hide it
and i have no idea why it keeps draining money

who hoo that was post 500
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #9  
Old 08-31-2001, 04:54 AM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
OK
__________________

Reply With Quote
  #10  
Old 08-31-2001, 05:13 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
don't use playersays
PHP Code:
//NPC Made by Merlin
if (playerenters) {hide;}
if (
playerchats&&strequals(#c,buy beer)) {
  
if (playerrupees=>1) {
    
playerupees=-1;
    
beer();
  }
}
if (
playertouchsme) {
  
heal();
}
function 
beer() {
  
show;
}
function 
heal() {
  
hurt -3;
  
hide;


Last edited by Merlin; 08-31-2001 at 05:28 AM..
Reply With Quote
  #11  
Old 08-31-2001, 10:07 AM
CyanideSR71 CyanideSR71 is offline
Registered User
CyanideSR71's Avatar
Join Date: Jun 2001
Location: Canada
Posts: 460
CyanideSR71 is on a distinguished road
Hmmm... I once made a script where the bartender actually got up, and tossed the beer to you... But that's when I was a newbie scripter and didn't even know arrays...
__________________
Cyanide SR71
Former Shadow Dragon
Co-Owner of what was Murasamune
Reply With Quote
  #12  
Old 09-01-2001, 12:54 PM
Rone Rone is offline
Registered User
Rone's Avatar
Join Date: Aug 2001
Location: Ohio
Posts: 744
Rone is on a distinguished road
Send a message via AIM to Rone Send a message via Yahoo to Rone
Even though i doubt you can help.. Merlins scrpt was OK.. but it didn't take a gralet.. another thing is I would like the beer to be warped to right to the Right of where the player is
__________________

Reply With Quote
  #13  
Old 09-01-2001, 02:01 PM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
Quote:
Originally posted by Rone
Even though i doubt you can help.. Merlins scrpt was OK.. but it didn't take a gralet.. another thing is I would like the beer to be warped to right to the Right of where the player is
PHP Code:
if (playerenters) {show;
}
if (
playerchats&&strequals(#c,buy beer) {
if (playerrupees>4) {
playerrupees=playerupees-5;
show();
}
}
function 
show() {
putnpc2 beer.txt,playerx-1,playery;
}

//in a .txt called "beer.txt"
if (created) {showimg beer.gif,thisx,thisy;
}
if (
playertouchsmeheal();

function 
heal() {
hurt -3;
destroy;

i guess
Reply With Quote
  #14  
Old 09-01-2001, 03:53 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (playerchats) {
if (strequals(#c,buy beer))
if (!visible) {
if (playerrupees>=1) {
playerrupees-=1;
showlocal;
}
else say2 You don't have enough money!;
}
else say2 You already have a beer;
}
}
if (playertouchsme) {
playerhearts+=0.5;
hidelocal;
}

__________________

Reply With Quote
  #15  
Old 09-03-2001, 06:35 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Bars and Beer

NOOOO!!!!!! Rebel95[list=1][*]I wish I could help[*]I can't, my brain is dead, it has been for a while[/list=1]
I know some people who would ask this question.
Why do people mock me?
I am the great:
get the picture? I would like to put some thing up on the thread, but I see that someone else has answered the question WAAAYYYYYYYYYYY be fore me. any more questions?
Quote:
"Through the greatest difficulty, there comes an oppritunity." -Albert Einstien
Quote:
"When Pigs FLY!!!!!"-My first love
:grrr: that is all I can think of.
Quote:
Quote:
"I love cheese!" -me of course
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:54 PM.


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