0.63.3 bits and pieces

Forum Archive - from http://theuniversal.net
Locked
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

0.63.3 bits and pieces

Post by Mit »

just a lil thread to keep track of some new world owner toys in 0.63.3

-----------------
Custom 'Use Item' Text

Code: Select all

*itemusetext ITEMNUM,Text
can now be used to set custom text for individual items on the inventory popup (replacing the standard 'Use Item' text that is normally determined by the item type)
-----------
Overriding standard menu options with script
Manually override the buttons you want to using:

Code: Select all

*scriptedoption [OPTION_NUM],[TEXT]
Valid [OPTION_NUM]s right now are :
1- F9 option on the mini menu
2 - 1st option on the player popup menu (replaces barter)
3 - 2nd option on the player popup menu (replaces challenge)
4 - 3rd option on the player popup menu
5 - 4th option on the player popup menu
6- 9 : [Reserved for later use]
10 - 14 : Battle options

e.g. Doing

Code: Select all

*scriptoption 2,Attack
Means that when you click a player's name, instead of "Barter with" being the top option, "Attack" is instead. When selected by the user, the server triggers a MenuOption event instead of the Barter one. e.g.

Code: Select all

Event( "MenuOption", "2" )
{
	*msg %PLAYER% You selected option 1 on player %TARGET%	
}
Last edited by Mit on Tue Jan 01, 2013 8:32 pm, edited 1 time in total.
User avatar
Omni
Posts: 156
Joined: Sat Feb 25, 2012 11:07 am

Post by Omni »

WONDERFUL!!!
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Just a wee time-saver :
When using osdaddat, or osdadditem, you no longer need the 'OSD' bit at the start of the item type.. i.e.
instead of

Code: Select all

osdaddat(OSDTEXT, 100, 10, 400, 50, "", "At the School you can learn new skills. " ) 
osdaddat(OSDBUTTON .. etc..
you can now just do

Code: Select all

osdaddat(TEXT, 100, 10, 400, 50, "", "At the School you can learn new skills. " ) 
osdaddat(BUTTON .. etc..
Also:

- added a *resetskills [PLAYER_NAME] which seemed to be lacking.

- added "PlayerLoginComplete" event that is triggered after "PlayerLogin" at the point where its valid to send player chat messages (etc)

- working version of *buildingconstruct [PLAYER_NAME] [BUILDING_NUM] [BUILDING_NAME]
Locked