The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






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)