Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robe Dispenser
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #1
Robe Dispenser
Time to share some scripts we use frequently on TUP. Some may be in need of updating.

Robe dispenser simply gives the player a robe the same colour as the stone. We use it when picking teams for events, players can pick up a robe once picked.

Code:
//********************************************************************//
//                        PVP ROBE DISPENCER                          //
//             GIVES OUT ONE ROBE THE COLOR OF THE STONE              //
//********************************************************************//
[itemdef i_stone_pvpclothes]
id = i_guildstone
name = PvP Robe Dispencer
type = t_script

on=@create
attr = attr_move_never | attr_static

on=@dclick
   if (<src.account.plevel> > 1)
       // Clicked by a staff member
       src.sysmessage Set stone color to set robe color
   endif

   // Give Robe
   if (<src.findid.i_stone_pvpclothes_timer.uid> > 0)
     src.sysmessage You can only obtian pvp clothes once.
   else
     src.newitem i_stone_pvpclothes_timer
     src.act.equip
     src.i_stone_pvpclothes_giveclothes <color>
   endif
   return 1

//********************************************************************//
[itemdef i_stone_pvpclothes_timer]
id = i_memory
type = t_eq_script
name = stonetimer

on=@create
   attr = attr_move_never

on=@equip
   timer = 600
   return 1

on=@timer
   remove
   return 1

//********************************************************************//
[function i_stone_pvpclothes_giveclothes]
   newitem i_robe
   act.color = <args>
   act.cont = <findlayer(21).uid>

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-16-2013 01:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)