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
  #20  
Old 08-25-2001, 03:09 AM
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
Quote:
Originally posted by konidias
Could someone tell me the point of all that scripting?

here you go:

NPC Code:

if (playerchats && strequals(#c,knighthelmet)) {
set haton;
setplayerprop #P1,hat0.png;
}



oh and for the hat item:

NPC Code:

if (playerenters) {
toweapons Hat;
setimg haticon.png;
}
if (weaponfired&&!haton&&knighthelmet) {
set haton;
setplayerprop #P1,hat0.png;
setani haton,;
freezeplayer 0.6;
sleep 0.6;
}
// taking hat off
if(weaponfired&&haton){
unset haton;
setani hatoff,;
freezeplayer 0.6;
sleep 0.6;
setplayerprop #P1,;
}

NPC Code:
if (weaponfired) {
if (strlen(#P1)>0) {
setplayerprop #P1,#s(client.hat);
setani haton,;
freezeplayer 0.6;
sleep 0.6;
}
else {
setani hatoff,;
freezeplayer 0.6;
sleep 0.6;
setplayerprop #P1,;
}
}

__________________

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 11:05 AM.


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