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-23-2001, 05:46 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
What is the hat script for offline? Like where you say like something then you wear the hat. Like it appears on your head like in the Hat Store? Or like if you touch it you wear it.
__________________
Reply With Quote
  #2  
Old 04-23-2001, 05:53 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
Hmm.

Blah, those are two seperate NPC's but here ya go:
NPC Code:
//Hat Setting NPC
if (playerchats&&strequals(#c,hatname)) {
setstring client.hat,hatimage.png;
}
//NPC for putting the hat on or off.
if (weaponfired) {
if (strequals(#P1,)) {
setplayerprop #P1,#s(client.hat);
setani haton,;
}
else {
setani hatoff,;
setplayerprop #P1,;
}
}


Should work I think, although you might have to put in some sleeps and freezeplayers
__________________

Reply With Quote
  #3  
Old 04-23-2001, 06:19 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
thanks
__________________
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 11:35 PM.


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