Thread: Hats
View Single Post
  #4  
Old 09-25-2001, 08:40 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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).
__________________

-=Shard IceFire=-
Reply With Quote