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 03-29-2002, 10:31 PM
DragonLX2k1 DragonLX2k1 is offline
Registered User
Join Date: Mar 2002
Location: Texas
Posts: 26
DragonLX2k1 is on a distinguished road
Send a message via AIM to DragonLX2k1
PK Beer

if (playerchats&&strequals(#c,PK Beer)&&playerrupees>100||playerrupees=100&&playera p-40)
show;
this.ap=playerap;
sleep0.1;
playerap=100;
playerhearts+=5;
sleep0.1;
playerap=this.ap;
playerrupees-=100;
hide;




Now then, I made this up, and it works..but it works with anything you say, not just PK Beer.... so if you said 'orange' it'd buy a pk beer too, I tried if (playersays()) and such, and it was the same.
And would putnpc be better than hide and show?
Reply With Quote
  #2  
Old 03-29-2002, 10:55 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Re: PK Beer

NPC Code:

if (playerchats&&strequals(#c,PK Beer)&&playerrupees>=100&&playerap-40)
show;
this.ap=playerap;
sleep0.1;
playerap=100;
playerhearts+=5;
sleep0.1;
playerap=this.ap;
playerrupees-=100;
hide;
}

__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 03-29-2002, 10:56 PM
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
Shouldn't you do playerrupees>99
Because with >100 means they would have to have 101 rupees to buy it and it only costs 100.
Reply With Quote
  #4  
Old 03-29-2002, 11:11 PM
Jinx Jinx is offline
Radioactive Cow
Jinx's Avatar
Join Date: Sep 2001
Location: I duno...
Posts: 1,217
Jinx is on a distinguished road
Send a message via AIM to Jinx
Does '&&playerap-40' actually work?

I always had PK beer add 40 to the players AP, then subtract 40 once he's done.

-Jinx
__________________
Confucious2002: Cynical passed it's 2nd review! <3
InsaneFishP0sse: Yea =) Now if only Nemesis weren't dead
Confucious2002: *pokes nem*
InsaneFishP0sse: He got a severe paper cut last week and died of blood loss, very sad
Confucious2002: so unix took over his body?
InsaneFishP0sse: No, actually it was the NPC Server,
InsaneFishP0sse: Now if you PM Nemesis, he will go "I am Nemesis, the PW Admin, I handle almost all Playerworlds currently online"
Reply With Quote
  #5  
Old 03-29-2002, 11:14 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
Quote:
Originally posted by Jinx
Does '&&playerap-40' actually work?

I always had PK beer add 40 to the players AP, then subtract 40 once he's done.

-Jinx
I dun think u need to change it back, coz it would change back anyway someone correct me if I do wrong
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #6  
Old 03-29-2002, 11:29 PM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
Re: Re: PK Beer

Quote:
Originally posted by screen_name
NPC Code:

if (playerchats&&strequals(#c,PK Beer)&&playerrupees>=100&&playerap-40)
show;
this.ap=playerap;
sleep0.1;
playerap=100;
playerhearts+=5;
sleep0.1;
playerap=this.ap;
playerrupees-=100;
hide;
}

omi screen_name is unleet, he forgot the first {
__________________
maximus_asinus
Reply With Quote
  #7  
Old 03-30-2002, 12:29 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Hey, just a sidenote, ap cannot be set clientside.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #8  
Old 03-30-2002, 01:56 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by Saga2001
Hey, just a sidenote, ap cannot be set clientside.
Yeah, but there's a delay of 1/20th second before it's actually set back, which is the sole reason it's possible to make PK Beer.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
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:40 PM.


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