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 04-03-2001, 07:07 AM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
How do you make it so when players say 'showshieldpower' or 'showswordpower' it shows them? Or even with that 'showshield' (gif) or 'showsword'? pick one =p
__________________
Reply With Quote
  #2  
Old 04-03-2001, 07:28 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
NPC Code:
if(playerchats){
if(strequals(showshieldpwr)) setplayerprop #c,#v(playershieldpower);
else if(strequals(showswordpwr)) setplayerprop #c,#v(playerswordpower);
else if(strequals(showshield)) setplayerprop #c,#2(0);
else if(strequals(showsword)) setplayerprop #c,#1(0);
}


__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #3  
Old 04-03-2001, 08:26 AM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
o! lol! thx!
+ is there a way to change a players ap? Online playerap=##; doesnt work. It changes, then switches back, you can only change it with RC or wait.

And is there an easier way to heal a player without changing it for a second...?
NPC Code:

if (playertouchsme) {
playerap+=50;
playerhearts+=3;
playerap-=50;
}

__________________
Reply With Quote
  #4  
Old 04-03-2001, 09:27 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Dun think so.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #5  
Old 04-03-2001, 06:42 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
Well you already posted an effective way of healing people with a PK tag yourself. Although you might be able to create a temporary place with higher AP for PKers with the following script (Not tested and ertainly not sure if it works):
NPC Code:
if (playerenters||timeout) {
for (this.i=0;this.i<playerscount;this.i++) {
if (players[this.i].ap<=40) {
players[this.i].ap=41;
}
}
timeout=0.05;
}


But as I said I have no idea if it will work online.
__________________

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 07:08 PM.


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