YASSE Global Variables (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Created page with '{{Script |cat=combat |fe=YASSE |auth=Hithrael }} ==Description== For use in all scripts (Version 2.0 or better) created by User:Hithrael. This combines ma…')
 
m (updated to 2.1)
Line 27: Line 27:
==Updates==
==Updates==
Last Updated:
Last Updated:
*'''07/28/2011''': Revision 2.1 changing some global variables in favor of embedding in hitbasic
*'''03/30/2011''': Revision 2.
*'''03/30/2011''': Revision 2.


Line 42: Line 43:


variables:
variables:
put -clear global
-clear global


#Container Variables
#Container Variables
Line 49: Line 50:
setglobalvariable gemtied [gem pouch]
setglobalvariable gemtied [gem pouch]
setglobalvariable gemtiedcontainer [cloak]
setglobalvariable gemtiedcontainer [cloak]
setglobalvariable mainpack [pack]


#Ranged Variables
#Ranged Variables
Line 55: Line 57:
#Armor Variables
#Armor Variables
setglobalvariable shield [shield]
setglobalvariable shield [shield]
setglobalvariable armormain [leathers]
setglobalvariable armormain [hauberk]
setglobalvariable armorhand [gloves]
setglobalvariable armorhand [gloves]
setglobalvariable armorhead [cowl]
setglobalvariable armorhead [balaclava]


#Skinning Variables
#Skinning Variables
setglobalvariable skincheck [yes]
setglobalvariable arrangenumber [3]
setglobalvariable skinmax [3]
setglobalvariable skinmax [3]
setglobalvariable skinknife [skinning knife]
setglobalvariable skinknife [skinning knife]
setglobalvariable skinningknifemessage [wrist sheath]
setglobalvariable skinningknifemessage [wrist sheath]


#Enchanting/Crafting Variables
#Box Variables
setglobalvariable dismantlewords [You close your eyes]
setglobalvariable dismantle [thump]
setglobalvariable lockpickcontainer [belt]
setglobalvariable lockpick [lockpick case]


#Enchanting/Crafting Variables
setglobalvariable enchantingtools [hip pouch]
setglobalvariable enchantstep1 [cloak]
setglobalvariable enchantstep2 [pack]
setglobalvariable telescope [telescope]
setglobalvariable burin [burin]
setglobalvariable carvingknife [carving knife]
setglobalvariable bagskin [lumpy bundle]
setglobalvariable smithbag [duffel bag]
setglobalvariable finishbag [pack]


#Assorted Variables
#Assorted Variables
setglobalvariable humstyle [hymn]
setglobalvariable humstyle [polka]


end:
end:

Revision as of 16:13, 28 July 2011

YASSE Global Variables (script)
Category combat
Front-end YASSE
Author Hithrael


Description

For use in all scripts (Version 2.0 or better) created by User:Hithrael. This combines many variables from the individual scripts into one location, so that the other scripts can be set into the main scripting folder, rather than needing individual copies for each user.

At this time, the LOOT script retains local settings for what items are picked up. If the user has individual preferences (e.g. one character does not want to collect boxes, but another does) then a copy of the LOOT script should be placed in each individual character's folder.

If any user of these scripts have overwhelming preferences to change these settings to the GLOBAL script (this one), please leave me feedback on the discussion page, and I can look at changing.

Syntax

  1. Place a copy of this script in the individual character's scripting folder.

Notes

  • Automatically clears all global variables
  • Set the variables to the appropriate items/containers/tasks
magiccontainer is where magical items, such as gweth stones should be placed
loadwait is how long the script should pause before continuing on to aim a ranged weapon (e.g. when the weapon may be already loaded)
skincheck should be set to yes if you want to skin, and no if you want to avoid skinning
arrangenumber can be left alone at this point, futher use may be added later
skinmax is the maximum arrange attempts you want to make (typically set to guild cap)
skinningknifemessage is the message sent to the game when wielding/sheathing your knife (best set to the container it is in)

Updates

Last Updated:

  • 07/28/2011: Revision 2.1 changing some global variables in favor of embedding in hitbasic
  • 03/30/2011: Revision 2.

Script

Boxmessage This script sets and updates global variables. \n Type "continue" if you want to wipe and replace your global variables.

getline

if %l contains continue
	goto variables
	else
	goto stop

variables:
-clear global

#Container Variables
setglobalvariable magiccontainer [hip pouch]
setglobalvariable gemcontainer [purple pouch]
setglobalvariable gemtied [gem pouch]
setglobalvariable gemtiedcontainer [cloak]
setglobalvariable mainpack [pack]

#Ranged Variables
setglobalvariable loadwait [10]

#Armor Variables
setglobalvariable shield [shield]
setglobalvariable armormain [hauberk]
setglobalvariable armorhand [gloves]
setglobalvariable armorhead [balaclava]

#Skinning Variables
setglobalvariable skinmax [3]
setglobalvariable skinknife [skinning knife]
setglobalvariable skinningknifemessage [wrist sheath]

#Box Variables
setglobalvariable dismantlewords [You close your eyes]
setglobalvariable dismantle [thump]
setglobalvariable lockpickcontainer [belt]
setglobalvariable lockpick [lockpick case]

#Enchanting/Crafting Variables
setglobalvariable enchantingtools [hip pouch]
setglobalvariable enchantstep1 [cloak]
setglobalvariable enchantstep2 [pack]
setglobalvariable telescope [telescope]
setglobalvariable burin [burin]
setglobalvariable carvingknife [carving knife]
setglobalvariable bagskin [lumpy bundle]
setglobalvariable smithbag [duffel bag]
setglobalvariable finishbag [pack]

#Assorted Variables
setglobalvariable humstyle [polka]

end:
boxmessage Completed.
exit

stop:
boxmessage No variables changed.
exit