Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hat Script (https://forums.graalonline.com/forums/showthread.php?t=1712)

Nai 04-23-2001 05:46 AM

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.

grim_squeaker_x 04-23-2001 05:53 AM

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 ;)

Nai 04-23-2001 06:19 AM

thanks


All times are GMT +2. The time now is 09:44 PM.

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