Graal Forums

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

fireball_dolphonia 09-25-2001 11:04 AM

Hats
 
what is the hat script and how do u change hats?

Thak2 09-25-2001 06:17 PM

setplayerprop #P1,hat48.png;

Knightoffrost 09-25-2001 08:05 PM

[ Delph Inc. ] (Owner of Dolphonia and Galactica (Dolphonia II))
Well...first of all...tell us what you're talking about?
P2P or non-P2P

Shard_IceFire 09-25-2001 08:40 PM

You can develop your own script for hats, but to set a player or NPC's hat you do:
NPC Code:

//player's hat
if (playerenters) {
//put stuff here
setplayerprop #P1,hat#.png;
}


NPC Code:

//NPC's hat
if (created) {
//put stuff here
setcharprop #P1,hat#.png;
}


It's rather easy. Unless you make your own hat graphics and use showimg, you can't use hats on non-p2p servers (I think).


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

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