annuncio

Comprimi
Ancora nessun annuncio.

[EASYUO HELP] Autolooter

Comprimi
X
 
  • Filtro
  • Ora
  • Visualizza
Elimina tutto
nuovi messaggi

  • [EASYUO HELP] Autolooter

    Cerco aiuto per uno script autolooter che uso mentre gioco (non away), dovrei aggiungere bone pile, rib cage ecc...potete aiutarmi pls??

    grazie in anticipo

    ecco il codice:
    codice:
    ;=============================================================
    ; Script Name:  BadManiac's Automagic Looting 2
    ; Author: BadManiac
    ; Version: 2.56
    ; Client Tested with: 5.0.0b
    ; EUO version tested with: 1.42.00B2 and 1.5 Test Version 56
    ; Shard OSI / FS: OSI / works on FS with correct item types
    ; Revision Date: 12/09/2005
    ; Public Release: 05/12/2004
    ; Global Variables Used:
    ;	*bml_busy Denotes Script is busy looting
    ;	*bml_minvalue Contains the last min value for equipment
    ;	*bml_settings Contains the last used settings for the script
    ;	*bml_hotkey Stores the current looting hotkey
    ; Purpose:
    ; Powerful fast Automagic Looting with item evaluation, corpse cutting,
    ; resource gathering and cutting, and looting equipment over a certain value
    ;=============================================================
    SET #LPC 50
    IGNOREITEM RESET BmLooter
    ;=============================================================
    ;One delay timing, this timer is the only thing you need to edit if the script has
    ;problems. Should be around 5, but 4 or 3  works fine for low ping high speed 
    ;conn's
    ;Dialup and high ping users might have to set it as high as 6 or 7.
    ;=============================================================
    SET %bml_waittime 6
    ;=============================================================
    ;Time to wait between actions to prevent errors. Lowering it might cause errors
    ;=============================================================
    SET %bml_action_wait 13
    ;=============================================================
    ; The lootlists are set here, other is a list of random other loot that doesn't fit
    ; anywhere else.
    ;=============================================================
    SET %gold POF_
    SET %jewels HVF_UVF_FVF_EVF_OVF_VUF_GVF_RVF_BVF_VVF_NVF_ZVF_
    SET %reagents KUF_JUF_KZF_JZF_MZF_WZF_RZF_SZF_DUF_TZF_UZF_YZF_IUF_
    SET %scrolls AUL_BUL_cul_dul_EUL_FUL_GUL_hul_iul_JUL_KUL_LUL_MUL_nul_oul_PUL_QUL_RUL_SUL_tul_UUL_vul_wul_XUL_YUL_zul_avl_gvl_fvl_ivl_hvl_cvl_NTL_otl_ptl_qtl_rtl_stl_ttl_utl_VTL_wtl_XTL_YTL_ZTL_qxl_pxl_zxl_nxl_wxl_vxl_yxl_xxl_zfj_byl_cyl_dyl_eyl_fyl_gyl_hyl_iyl_jyl_kyl_kym_pym_sym_tym_wym_uym_
    SET %arrowsbolts RWF_LNK_FKF_
    SET %solenloot GMF_OKF_TTO_IJG_
    SET %jukaloot JSL_USL_WOH_YWL_
    SET %paragonloot IIF_IKF_BUD_HIF_
    ;Resource loot lists
    SET %feather VLK_
    SET %wool HFG_
    SET %bones OJK_XIK_SJK_IJK_TJK_BJK_UJK_DJK_MJK_AJK_LJK_FJK_RJK_EJK_ZIK_YIK_JJK_GJK_KJK_HJK_
    SET %leather EEG_GED_DEG_
    ;Itemtypes for bones and leather after cutting with scissor
    SET %cutresources JJG_GUF_
    ;Seeds, TMap, Gargoyle Pickaxe, Demon Bones, Tribal Berry, Origami Paper, Healthy Gland
    SET %other PDF_XVH_QPF_OZF_QQD_QIP_NWK_
    ;=============================================================
    ;user1 and user2 are for the users personal lists. They are selectable
    ;in the menu and you can add your own loot types to them.
    ;The lists below are examples of what you may want to include
    ;=============================================================
    ;Plate of Cookies, Fertile Dirt, Tribal Mask,Mask of Orcish Kin, Evil Orc Helm, Fire Horn
    SET %user1 SLI_NZF_PZH_VSH_NWL_IWL_ZWF_
    ;Bandage, Parrots
    SET %user2 ZLF_YJM_
    ;=====================================
    ;Set lootlists for equippment
    ;=====================================
    GOSUB SetEquipLootlists
    ;=============================================================
    ;This is a list of the different bags types that will be opened and looted,
    ;as well as types for knives and scissors for cutting corpses and leather.
    ;DON'T EDIT. unless you know what you are doing.
    ;=============================================================
    SET %bags ZJF_LKF_CKF_YKK
    SET %knives TSF_GMH_BNF_CNF
    SET %scissors KAG_JAG
    ;=====================================
    ; This is the INIT part of the script
    ;=====================================
    GOSUB CheckFreeShard bml_freeshard
    GOSUB ShowLootMenu
    GOSUB LootInit
    ;Init End
    ;=====================================
    ;The script main loop starts here
    ;=====================================
    mainloop:
    	;Make script less intrusive by checking for lifted objects, target cursor, charcter status or char movement.
    	GOSUB CheckStatus
    	IF ! #RESULT
    		GOTO mainloop
    	GOSUB CheckWeight
    	;If hotkey is set, wait until the specified key is pressed before starting to loot.
    	IF %hotkey
    	{
    		FOR %i 1 1
    		{
    			SET %i 0
    			ONHOTKEY *bml_hotkey
    			{
    				SET %i 1
    				KEY BACK
    			}
    		}
    	}
    	;All is well, go ahead and look for corpses in range to loot.
    	GOSUB LookForCorpse
    	IF #RESULT <> #FALSE
    	{
    		;Set global to denote that we are busy looting
    		SET *bml_busy #TRUE
    		GOSUB LootPack #RESULT
    		IF #RESULT
    			IGNOREITEM %bml_corpse BmLooter
    		GOSUB TidyPack
    	}
    	;Set global to denote that we are done looting
    	SET *bml_busy #FALSE
    	WAIT %bml_waittime
    GOTO mainloop
    ;================================================================
    ;SUBROUTINES START HERE.
    ;================================================================
    SUB LootInit
    	IF %mcut
    	{
    		FINDITEM %scissors C_ , #BACKPACKID
    		IF #FINDKIND = -1
    		{
    			DISPLAY OK You need scissors to cut looted resources. $ HALTED!
    			HALT
    		}
    		FINDITEM %knives C_ , #BACKPACKID
    		IF #FINDKIND = -1
    		{
    			DISPLAY OK You need a knife to cut corpses to loot resources. $ HALTED!
    			HALT
    		}
    	}
    	IF %lootbag = #TRUE
    	{
    		SET #LTARGETID N/A
    		DISPLAY OK Please target your LOOTBAG and click it. $
    		SET #TARGCURS 1
    findbag:
    		WAIT 1
    		IF #TARGCURS = 1
    			GOTO findbag
    		SET %origx #CURSORX
    		SET %origy #CURSORY
    		SET %lootbagid #LTARGETID
    		FINDITEM %lootbagid C
    		SET %lxmod %origx - #FINDX
    		SET %lymod %origy - #FINDY
    		SET %regbagid %lootbagid
    		SET %rxmod %lxmod
    		SET %rymod %lymod
    	}
    	IF %regbag = #TRUE
    	{
    		DISPLAY OK Please target our REGBAG and click it.$
    		SET #LTARGETID N/A
    		SET #TARGCURS 1
    findregbag:
    		WAIT 1
    		IF #TARGCURS = 1
    			GOTO findregbag
    		SET %origx #CURSORX
    		SET %origy #CURSORY
    		SET %regbagid #LTARGETID
    		FINDITEM %regbagid C
    		SET %rxmod %origx - #FINDX
    		SET %rymod %origy - #FINDY
    	}
    	SET %bml_charpos #CHARPOSX , #CHARPOSY
    	;Reset globals for Seg'sBandage healer and CEOMedic
    	SET *510 ok
    	SET *BUSY 0
    RETURN
    
    SUB LookForCorpse
    	FINDITEM YFM G_2
    	;If the corpse is a friends (green) or innocents (killed by someone else), or too far away. Don't loot it.
    	IF #FINDKIND = -1 || #FINDDIST > 2
    		RETURN #FALSE
    	SET %bml_corpse #FINDID
    	IF #FINDKIND <> -1 && #FINDTYPE = YFM
    	{
    		;If everything is fine, and the found object is a corpse you have right to loot, and it is within range.
    		;Find the loot- and reg bags and set the coordinates accordingly
    		FINDITEM %lootbagid C
    		IF #FINDKIND = -1
    		{
    			EVENT EXMSG #CHARID 3 33 Can't find lootbag, paused.
    			PAUSE
    			RETURN #FALSE
    		}
    		SET %lootx #FINDX + %lxmod
    		SET %looty #FINDY + %lymod
    		FINDITEM %regbagid C
    		IF #FINDKIND = -1
    		{
    			EVENT EXMSG #CHARID 3 33 Can't find regbag, paused.
    			PAUSE
    			RETURN #FALSE
    		}
    		SET %regbx #FINDX + %rxmod
    		SET %regby #FINDY + %rymod
    	}
    RETURN %bml_corpse


    TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

    The VAX -->>> http://www.myspace.com/thevaxband

    --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

  • #2
    codice:
    SUB LootPack
    	;Counter for Recursive Variables
    	SET %ccid %ccid + 1
    	SET %local1 %1
    	SET %bml_success #FALSE
    	IF %ccid = 1
    		FINDITEM %local1 G_2
    	ELSE
    		FINDITEM %local1
    	IF #FINDDIST > 2 || #FINDCNT < 1
    		GOTO packfinish
    	SET %subbagtype . %ccid #FINDTYPE
    cut_corpse:
    	;Cut corpse if specified
    	IF %mcut && ( %ccid = 1 )
    	{
    		SET %bml_jstart #JINDEX + 1
    		GOSUB CutCorpse %local1
    		FOR %i %bml_jstart #JINDEX
    		{
    
    			IF You_must_wait_to_perform_another_action. IN #JOURNAL
    				GOTO cut_corpse
    			IF I_can't_reach_that. IN #JOURNAL
    				GOTO packfinish
    			IF may_not_loot IN #JOURNAL || criminal_action IN #JOURNAL || did_not_earn_the_right IN #JOURNAL || did_not_slay_this_creature IN #JOURNAL
    			{
    				SET %bml_success #TRUE
    				GOTO packfinish
    			}
    		}
    	}
    	SET %bml_jstart #JINDEX + 1
    openpack:
    	;Make script less intrusive by checking for lifted objects, target cursor, or char movement.
    	GOSUB CheckStatus
    	IF ! #RESULT
    		GOTO openpack
    	;Open corpses near the lower right corner of the game area for 800x600 res.
    	SET #nextCPosX 660
    	SET #nextCPosY 390
    	SET #LOBJECTID %local1
    	GOSUB BMWaitAction %bml_action_wait
    	EVENT MACRO 17 0
    	GOSUB BMWaitAction
    	SET %bml_jend #JINDEX + 1
    	;Makes sure the script doesn't keep trying to open a corpse when it hasn't got the right to open.
    	FOR %i %bml_jstart %bml_jend
    	{
    		SCANJOURNAL %i
    		IF You_must_wait_to_perform_another_action. IN #JOURNAL
    		{
    			GOSUB BMWaitAction %bml_action_wait
    			SET %bml_jstart #JINDEX + 1
    			GOTO openpack
    		}
    		IF may_not_loot IN #JOURNAL || criminal_action IN #JOURNAL || did_not_earn_the_right IN #JOURNAL || did_not_slay_this_creature IN #JOURNAL
    		{
    			SET %bml_success #TRUE
    			GOTO packfinish
    		}
    		IF I_can't_reach_that. IN #JOURNAL
    		{
    			SET %bml_success #FALSE
    			GOTO packfinish
    		}
    	}
    	GOSUB WaitForVar CONTTYPE = %subbagtype . %ccid 20
    	IF #RESULT = #FALSE
    		GOTO openpack
    	SET %subbag . %ccid #CONTID
    	IF ! %bml_freeshard
    		GOSUB BMWaitAction %bml_action_wait
    packloop:
    	;Make script less intrusive by checking for target cursor, or char movement and waiting.
    	GOSUB CheckStatus
    	IF ! #RESULT
    		GOTO packloop
    	;Check weight between each drag operation to make sure we're not overweight.
    	GOSUB CheckWeight
    	FINDITEM %bml_lootlist C_ , %subbag . %ccid
    	IF #FINDKIND = -1
    	{
    		IGNOREITEM RESET BmLooter_temp
    		IF %bml_lootequipment = #TRUE
    			GOTO lootequipment
    		GOTO subpackcheck
    	}
    	SET %bml_lastitem #FINDID
    	IF #findtype IN %reagents , %necroregs
    	{
    		GOSUB MoveItem #findid %regbx %regby %regbagid
    		GOTO finishcurrentitem
    	}
    	IF #FINDTYPE IN %leather , %bones
    	{
    		GOSUB MoveAndCut #FINDID %lootx %looty
    		GOTO finishcurrentitem
    	}
    	IF #FINDTYPE = IJG
    	{
    		EVENT PROPERTY #FINDID
    		WAIT 1
    		IF binding NOTIN #PROPERTY
    		{
    			IGNOREITEM %bml_lastitem BmLooter_temp
    			GOTO finishcurrentitem
    		}
    	}
    	IF #FINDTYPE = QPF
    	{
    		EVENT PROPERTY #FINDID
    		WAIT 1
    		IF gargoyle NOTIN #PROPERTY
    		{
    			IGNOREITEM %bml_lastitem BmLooter_temp
    			GOTO finishcurrentitem
    		}
    	}
    	GOSUB MoveItem #FINDID %lootx %looty %lootbagid
    finishcurrentitem:
    	;Last drag failed, temporarily ignore the item before proceeding.
    	IF #RESULT = #FALSE
    		IGNOREITEM %bml_lastitem BmLooter_once
    	ELSE
    		IGNOREITEM RESET BmLooter_once
    	GOTO packloop
    lootequipment:
    	SET #RESULT 0
    	FINDITEM %bml_equiplootlist C_ , %subbag . %ccid
    	IF #FINDKIND = -1
    		GOTO subpackcheck
    	SET %lootitem #FINDID
    	CALL ItemEval.euo %lootitem
    	IF #RESULT < *bml_minvalue
    	{
    		IGNOREITEM %lootitem BmLooter
    		GOTO lootequipment
    	}
    	ELSE
    		GOSUB MoveItem %lootitem %lootx %looty %lootbagid
    	;Last drag failed, temporarily ignore the item before proceeding.
    	IF #RESULT = #FALSE
    		IGNOREITEM %lootitem BmLooter_once
    	ELSE
    		IGNOREITEM RESET BmLooter_once
    	GOTO lootequipment
    subpackcheck:
    	FINDITEM %bags C_ , %subbag . %ccid
    	IF #FINDKIND = -1
    	{
    		GOTO packend
    	}
    	GOSUB LootPack #FINDID
    	GOTO subpackcheck
    packend:
    	SET %bml_success #TRUE
    	SET %closetime #SCNT2 + 10
    	IF %closecorpse = #TRUE
    	{
    		FOR %closei 1 1
    		{
    			IF #CONTTYPE NOTIN %subbagtype . %ccid && ( #SCNT2 < %closetime )
    			{
    				CLICK 730 440 DMC
           				SET %closei %closei 0
    			}
             			IF #CONTTYPE IN %subbagtype . %ccid || ( #SCNT2 > %closetime )
          			{
    				GOSUB BMWaitAction %bml_action_wait
    				CLICK 730 440 R DMC
    				GOSUB BMWaitAction
    				SET %closei 1
          			}
    		}
    	}
    packfinish:
    	IF %ccid > 1
    		IGNOREITEM %subbag . %ccid BmLooter
    	SET %ccid %ccid - 1
    RETURN %bml_success
    
    ;=============================
    ; %1 is the ID of the item to drag.
    ; %2 is the X screen coordinate and
    ; %3 is the Y coordinate to drop it at.
    ; %4 is the container ID to drop in
    ;=============================
    SUB MoveItem
    	IF %0 < 3
    		RETURN #FALSE
    	SET %mi_itemid %1
    	SET %mi_x %2
    	SET %mi_y %3
    	SET %mi_dropid %4
    	SET %mi_retrycount 3
    	SET %mi_actionwait %bml_action_wait
    	SET %mi_ddwait %bml_waittime
    	IF %bml_freeshard
    	{
    		SET %mi_actionwait 5
    		SET %mi_ddwait 5
    	}
    drag_start:
    	FINDITEM %mi_itemid
    	IF #FINDKIND = -1
    		RETURN #FALSE
    	SET %mi_srccont #FINDBAGID
    	SET %mi_itemstack #FINDSTACK
    	IF 1_5 IN #EUOVER
    	{
    		EVENT DROPC #BACKPACKID
    		GOSUB BMWaitAction %mi_actionwait
    		EXEVENT DRAG %mi_itemid %mi_itemstack
    		WAIT %mi_ddwait
    		EXEVENT DROPC %mi_dropid
    		SET %mi_droptimeout #SYSTIME + 800
    drop_wait:
    		FINDITEM %mi_itemid C_ , %mi_srccont
    		IF #FINDKIND <> -1 && #SYSTIME < %droptimeout
    			GOTO drop_wait
    		SET #RESULT #FALSE
    		IF #FINDKIND = -1
    			SET #RESULT #TRUE
    	}
    	ELSE
    		GOSUB s7MoveToPos %mi_itemid %mi_x %mi_y 1
    	GOSUB BMWaitAction
    	IF #RESULT = #FALSE
    	{
    		SET %mi_retrycount %mi_retrycount - 1
    		IF %mi_retrycount <= 0
    			RETURN #FALSE
    		GOTO drag_start
    	}
    RETURN #TRUE


    TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

    The VAX -->>> http://www.myspace.com/thevaxband

    --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

    Commenta


    • #3
      codice:
      
      ;=========================
      ; %1 is the ID of the item to drag.
      ; %2 is the X screen coordinate and
      ; %3 is the Y coordinate to drop it at.
      ;=========================
      SUB MoveAndCut
      	IF %0 < 3
      		RETURN #FALSE
      	SET %mi_itemid %1
      	SET %mi_x %2
      	SET %mi_y %3
      	FINDITEM %mi_itemid
      	IF #FINDKIND = -1
      		RETURN #FALSE
      	SET %mi_stack #FINDSTACK
      	SET %mac_cont #FINDBAGID
      	GOSUB BMWaitAction %bml_action_wait
      _mac_begin:
      	IF %bml_freeshard
      	{
      		;Cut the resource on the corpse
      		GOSUB Cut %mi_itemid
      		IF #RESULT = #FALSE
      			RETURN #FALSE
      		FINDITEM JJG C_ , %mac_cont
      		IF #FINDKIND = -1
      			RETURN #FALSE
      		SET %mi_itemid #FINDID
      	}
      	;If no item is already on the cursor, and there isn't a stack gump open, then drag the item.
      	SET %mac_dragtimer #SCNT2 + 25
      _mac_dragloop:
      	IF #LLIFTEDKIND = 0 && #CONTNAME <> drag_gump && #CONTNAME <> stack_gump
      		EVENT DRAG %mi_itemid
      _mac_dragwait:
      	WAIT %bml_waittime
      	IF #LLIFTEDKIND = 0 && #CONTNAME <> drag_gump && #CONTNAME <> stack_gump
      	{
      		IF #SCNT2 < %mac_dragtimer
      			GOTO _mac_dragwait
      		RETURN #FALSE
      	}
      	GOSUB BMWaitAction
      	;If the stack count sent in %2 is bigger than 1 or the stack gump is open, it means we are dragging a stack of items, and need to press ENTER.
      	SET %mac_dragtimer #SCNT2 + 25
      	IF %mi_stack > 1 && #CONTNAME <> stack_gump
      	{
      		CLICK #CURSORX #CURSORY dmc
      		WAIT %bml_waittime
      	}
      	IF %mi_stack > 1 && #CONTNAME = stack_gump
      		KEY ENTER
      	GOSUB WaitForVar LLIFTEDKIND = 1 25
      	IF ( #RESULT = #FALSE ) && ( #SCNT2 < %mac_dragtimer )
      		GOTO _mac_begin
      	IF ! %bml_freeshard
      	{
      		;Cut the lresource while dragging it
      		GOSUB Cut %mi_itemid
      	}
      	; Drop the item at the coordinates sent in %2 and %3, and if the item is still on the cursor, try again.
      _mac_clickloop:
      	CLICK %mi_x %mi_y p dmc
      	GOSUB WaitForVar LLIFTEDKIND = 0 25
      	IF #RESULT = #FALSE
      		GOTO _mac_clickloop
      RETURN #TRUE
      
      SUB Cut
      	SET #LTARGETKIND 1
      	SET #LTARGETID %1
      	FINDITEM %scissors C_ , #BACKPACKID
      	SET #LOBJECTID #FINDID
      	GOSUB BMWaitAction %bml_action_wait
      	SET %bml_cut_timeout #SCNT2 + 50
      	SET %bml_jindex #JINDEX
      _cut_cutloop:
      	EVENT MACRO 17 0
      	IF You_must_wait_to_perform_another_action IN #SYSMSG
      	{
      		WAIT %bml_waittime
      		GOTO _cut_cutloop
      	}
      	TARGET 5s
      	EVENT MACRO 22 0
      	GOSUB BMWaitAction
      	WAIT %bml_waittime
      	FOR %i %bml_jindex #JINDEX
      	{
      		SCANJOURNAL %i
      		DELETEJOURNAL
      		IF THAT_IS_TOO_FAR_AWAY IN #JOURNAL
      			RETURN #FALSE
      	}
      RETURN #TRUE
      
      SUB CutCorpse
      	FINDITEM %knives C
      	SET #LOBJECTID #FINDID
      	SET #LTARGETID %1
      	SET #LTARGETKIND 1
      	GOSUB BMWaitAction %bml_action_wait
      	EVENT MACRO 17 0
      	TARGET 5s
      	EVENT MACRO 22 0
      	GOSUB BMWaitAction
      RETURN
      
      SUB CheckStatus
      	IF %cs_statustimer = N/A
      		SET %cs_statustimer #SCNT2 + 8
      	IF %cs_charpos = N/A
      		SET %cs_charpos #CHARPOSX , #CHARPOSY
      	EVENT PROPERTY #CHARID
      	IF H IN #CHARSTATUS || #CLILOGGED = 0 || #CHARGHOST = YES
      		RETURN #FALSE
      	;Check if other scripts are busy.
      	;Currently supports CEOMedic and Seg's stable bandage healer 11.0
      	IF ( N/A NOTIN *BUSY && *BUSY <> 0 ) || ok NOTIN *510 && paused NOTIN *510
      		GOSUB BMWaitAction
      	IF #LLIFTEDKIND = 1 || #CONTNAME = drag_gump || #CONTNAME = stack_gump || #TARGCURS = 1
      		RETURN #FALSE
      	IF frozen IN #PROPERTY
      		RETURN #FALSE
      	IF %cs_charpos <> #CHARPOSX , #CHARPOSY
      	{
      		IF #SCNT2 > %cs_statustimer
      		{
      			SET %cs_charpos #CHARPOSX , #CHARPOSY
      			SET %cs_statustimer #SCNT2 + 8
      		}
      		RETURN #FALSE
      	}
      RETURN #TRUE
      
      SUB CheckWeight
      	IF %bml_maxweight = N/A
      	{
      		;GOSUB IWMPAvailableWeight #FALSE
      		;SET %bml_maxweight #WEIGHT + #RESULT - 15
      		SET %bml_maxweight #MAXWEIGHT - 20
      	}
      	IF #WEIGHT >= %bml_maxweight
      	{
      		EVENT EXMSG #CHARID 3 33 Nearly overweight, please unload some loot.
      		GOTO weightwait
      	}
      	GOTO weightok
      weightwait:
      	;CALL BMBoSGold.euo %lootbagid
      	WAIT 10
      	IF #WEIGHT >= %bml_maxweight
      		GOTO weightwait
      weightok:
      RETURN
      
      SUB TidyPack
      _bml_tidyloop:
      	FINDITEM %cutresources C_ , #BACKPACKID
      	IF #FINDKIND = -1
      		RETURN
      	GOSUB MoveItem #FINDID %lootx %looty %lootbagid
      	GOTO _bml_tidyloop
      RETURN
      
      ;===============================
      ; BMWaitAction
      ; %1 time to wait in 10th of a second
      ; If no arguments are passed, it sets
      ; the timer to the current time
      ;===============================
      SUB BMWaitAction
      	IF %0 < 1 || %1 = N/A || %bmwatimer = N/A
      	{
      		SET %bmwatimer #SCNT2
      		RETURN
      	}
      bmwa_wait:
      	IF ( %bmwatimer + %1 ) > #SCNT2
      		GOTO bmwa_wait
      RETURN
      ;===============================
      ; WaitForVar
      ; %1 sysvar to wait for without #
      ; %2 comparison operator = <> ...
      ; %3 value to compare with
      ; %4 optional timeout, default 5 seconds
      ;===============================
      SUB WaitForVar
      	;Set the timeout to %4 if passed, otherwise default to 5 seconds.
      	IF %0 < 4 || %4 = N/A
      		SET %wfv_timeout #SCNT2 + 50
      	ELSE
      		SET %wfv_timeout #SCNT2 + %4
      wfv_waitloop:
      	IF #SCNT2 > %wfv_timeout
      		RETURN #FALSE
      	IF ! ( # . %1 %2 %3 )
      		GOTO wfv_waitloop
      RETURN #TRUE
      
      SUB SetEquipLootlists
      {
      	;WEAPON TYPES=============================================================
      	SET %sword YPO_BNF_CPH_INF_FSF_OSF_ASF_HNF_FMH_CNF_LSF_NSF_ISF_SMH_RMH_CSF_ZRF_MPH_LPH_MSF_BSF_KPO_GUO_KTF_JTF_BPH_EPH_ZSF_ATF_JPH_SOH_POH_NMH_OMH_LPO_ZTO_XTH_YTH_HSF_KSF_NPO_XPO_FUO_JPO_QPF_NPF_KPH_FYG_RHM_SFR_
      	SET %fencing SRH_AQF_PPF_TSF_WSF_BUO_VPO_WPO_WRH_VRH_XRH_YRH_LTF_MTF_OPO_RRH_CUO_
      	SET %mace OLH_JOH_URH_EMH_WTH_DMH_QMH_CFF_BFF_PMH_GMH_ZPF_CQF_FFF_RPF_TRH_YSF_XSF_FBG_VTH_AUH_ZTH_UOH_VOH_AUO_MPO_BUH_CUH_DMH_GFF_QOH_HFF_TLH_GBG_
      	SET %bow WOH_TOH_QPO_SPO_WOH_TOH_JSF_USF_LMH_MMH_QPO_SPO_PPO_RPO_JSF_USF_LMH_MMH_PPO_RPO_JSF_
      	;Samurai Empire Weapons---
      	SET %se_sword CSF_ZRF_MPH_LPH_MSF_BSF_KPO_GUO_KTF_JTF_BPH_EPH_ZSF_ATF_JPH_SOH_POH_NMH_OMH_LPO_ZTO_XTH_YTH_HSF_KSF_NPO_XPO_FUO_JPO_QPF_NPF_KPH_FYG_RHM_JDP_EDP_YCP_KDP_
      	SET %se_fencing LDP_HDP_ZCP_FDP_
      	SET %se_mace DDP_ADP_IDP_
      	SET %se_bow XCP_
      	;Mondain's Legacy Weapons---
      	SET %ml_sword XFR_EFR_NFR_OFR_
      	SET %ml_fencing HFR_GFR_FFR_IFR_
      	SET %ml_mace CFR_BFR_
      	SET %ml_bow WER_VER_
      	;ARMOR TYPES================================================================
      	;Medable first----
      	SET %leatherarmor VKH_NJL_QJL_JKH_QKH_DLH_HKH_PKH_SKH_KKH_ELH_PSF_QSK_ATK_ZSK_OSK_YSK_NSK_
      	SET %medhelmet NJL_QJL_NZH_TDI_VVI_KZH_PZH_DZH_
      	SET %medgorget JKH_RJG_SJG_FJG_MWL_
      	SET %medarm HKH_PKH_
      	SET %medtunic QKH_DLH_
      	SET %femalemedtunic ATK_ZSK_OSK_NSK_
      	SET %medglove KKH_SKH_WTO_
      	SET %medlegging VKH_ELH_
      	SET %femalemedlegging QSK_YSK_PSK_
      	;Hats---
      	SET %hats CZH_HZH_GZH_BWI_WVI_XVI_YVI_IWI_HWI_KWI_JWI_EWI_JJN_OZH_DZH_BZH_EZH_VSH_QSH_VSH_NWL_
      	;Samurai Empire Medable Armor---
      	SET %se_leatherarmor RWO_GCP_UBP_OWO_LCP_SWO_GWO_CCP_NCP_OCP_
      	SET %se_medhelmet GWO_CCP_
      	SET %se_medgorget SWO_
      	SET %se_medarm OWO_
      	SET %se_medtunic RWO_NCP_
      	SET %se_medglove OCP_
      	SET %se_medleggins GCP_UBP_LCP_ECP_
      	SET %se_medarmor %se_leatherarmor , %se_medhelmet , %se_medgorget , %se_medarm , %se_medtunic , %se_medglove , %se_medleggins
      	;Mondain's Legacy Medable Armor---
      	SET %ml_medhelmet IJQ_
      	SET %ml_medgorget BAS_
      	SET %ml_medarm MAS_
      	SET %ml_medtunic ZZR_
      	SET %ml_medglove CAS_
      	SET %ml_medleggings OAS_LAS_
      	SET %ml_medarmor %ml_medhelmet , %ml_medgorget , %ml_medarm , %ml_medtunic , %ml_medglove , %ml_medleggings
      	;---
      	SET %medarmor %leatherarmor , %medHelmet , %hats , %medGorget , %medArm , %medTunic , %femaleMedTunic , %medGlove , %medLegging , %femaleMedLegging , %se_medarmor , %ml_medarmor
      	;Non medable---
      	SET %studdedarmor ALH_ULH_LLH_YKH_GLH_XKH_FLH_RLH_MLH_SSK_RSK_
      	SET %bonearmor ZPH_YPH_WPH_PPH_BQH_QPH_VPH_XPH_CQH_AQH_
      	SET %nonmedhelmet DSH_ASH_TSH_ESH_YPH_GSH_OSH_ZPH_ZRH_IWL_CSH_CSH_BSH_FSH_DPH_LKO_NWL_MKH_
      	SET %nonmedgorget NSH_ALH_
      	SET %nonmedarm BQH_JSH_XLH_GLH_MSH_YLH_QPH_YKH_DLO_
      	SET %nonmedtunic HSH_ULH_LLH_ZOH_IKH_VLH_KSH_WLH_WPH_PKO_PPH_RSK_
      	SET %femalenonmedtunic USK_SSK_MSK_TSK_LSK_USK_
      	SET %nonmedglove VPH_ISH_AQH_BMH_USH_XKH_FLH_KMH_RKO_
      	SET %nonmedlegging HMH_LSH_IMH_CQH_WSH_APH_MLH_RLH_NKH_XPH_NKO_
      	;Samurai Empire Non Medable Armor---
      	SET %se_studdedarmor MWO_NWO_FCP_PCP_TBP_
      	SET %se_nonmedhelmet RBP_DCP_QWO_DWO_SBP_VBP_FWO_
      	SET %se_nonmedgorget PCP_
      	SET %se_nonmedarm NWO_WBP_
      	SET %se_nonmedtunic MWO_LWO
      	SET %se_nonmedleggins FCP_TBP_ZBP_
      	SET %se_nonmedarmor %se_studdedarmor , %se_nonmedhelmet , %se_nonmedgorget , %se_nonmedarm , %se_nonmedtunic , %se_nonmedleggins
      	;Mondain's Legacy Non Medable Armor---
      	SET %ml_nonmedhelmet RJQ_UJQ_TJQ_
      	SET %ml_nonmedgorget QJQ_JJQ_
      	SET %ml_nonmedarm PJQ_GJQ_
      	SET %ml_nonmedtunic OJQ_ZIQ_
      	SET %ml_nonmedgloves NJQ_MJQ_
      	SET %ml_nonmedleggings AKQ_LJQ_
      	SET %ml_nonmedarmor %ml_nonmedhelmet , %ml_nonmedgorget , %ml_nonmedarm , %ml_nonmedtunic , %ml_nonmedgloves , %ml_nonmedleggings
      	;---
      	SET %nonmedarmor %studdedarmor , %bonearmor , %nonmedHelmet , %nonmedGorget , %nonmedArm , %nonmedTunic , %femaleNonMedTunic , %nonmedGlove , %nonmedLegging , %se_nonmedarmor , %ml_nonmedarmor
      	;INIT LISTS====================================================================
      	SET %bml_swordlist %sword  , %se_sword , %ml_sword
      	SET %bml_fencinglist %fencing , %se_fencing , %ml_fencing
      	SET %bml_macelist %mace , %se_mace , %ml_mace
      	SET %bml_bowlist %bow , %se_bow , %ml_bow
      	SET %bml_armorlist %medarmor , %nonmedarmor
      	SET %bml_shieldlist LIK_MIK_CLK_AIK_CIK_LYD_GIK_NIK_ZHK_HLK_BLK_FIK_BIK_OIK_
      	SET %bml_jewelerylist CWL_LWL_UJG_IJG
      	SET %bml_instrumentlist OQF_LQF_PRF_KRF_MQF_QRF_RGP_ ;RGP is the Samurai Empire Instrument
      RETURN


      TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

      The VAX -->>> http://www.myspace.com/thevaxband

      --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

      Commenta


      • #4
        codice:
        ;--------- EasyUO Menu Designer Code Begin ---------
        sub showLootMenu
        	menu Clear
        	menu Window Title Automagic Looting
        	menu Window Color BtnFace
        	menu Window Size 222 297
        	menu Font Transparent #true
        	menu Font Align Right
        	menu Shape EUOShape1 0 200 221 2 3 7 1 Black 7 Black
        	menu Shape EUOShape2 0 108 225 2 3 7 1 Black 7 Black
        	menu Shape EUOShape3 52 236 109 29 3 7 2 Black 7 BtnFace
        	menu Shape EUOShape4 0 84 225 2 3 7 1 Black 7 Black
        	menu Shape EUOShape5 0 236 221 2 3 7 1 Black 7 Black
        	menu Font Name MS Sans Serif
        	menu Font Size 8
        	menu Font Style
        	menu Font Color WindowText
        	menu Font Transparent #false
        	menu Font Align Left
        	menu Text EUOLabel1 28 180 Minimum Loot Score:
        	menu Text EUOLabel2 156 180 (1-30)
        	menu Font BGColor Window
        	menu Edit value 128 176 25 10
        	menu Edit hotkey 142 240 14 A
        	menu Font BGColor BtnFace
        	;---
        	menu Check goldchk 0 0 109 17 #false Gold
        	menu Check gemchk 0 16 109 17 #false Gems
        	menu Check regchk 0 32 109 17 #false Reagents
        	menu Check ammochk 0 48 109 17 #false Ammo
        	menu Check scrollchk 0 64 109 17 #false Scrolls
        	menu Check solenchk 112 0 109 17 #false Solen Loot
        	menu Check jukachk 112 16 109 17 #false Juka Loot
        	menu Check paragonchk 112 32 109 17 #false Paragon Loot
        	menu Check resourcechk 112 48 109 17 #false Resources
        	menu Check otherchk 112 64 109 17 #false Other
        	;---
        	menu Check user1chk 0 88 109 17 #false User1
        	menu Check user2chk 112 88 109 17 #false User2
        	;---
        	menu Check swordchk 0 112 109 17 #false Swords
        	menu Check fencechk 112 112 109 17 #false Fencing
        	menu Check macechk 0 128 109 17 #false Maces
        	menu Check bowchk 112 128 109 17 #false Bows
        	menu Check armorchk 0 144 109 17 #false Armor
        	menu Check shieldchk 112 144 109 17 #false Shields
        	menu Check jewelchk 0 160 109 17 #false Jewellery
        	menu Check instrumentchk 112 160 109 17 #false Instruments
        	;---
        	menu Check allchk 0 204 109 13 #false Everything
        	menu Check closechk 112 204 109 13 #true Close Corpse
        	menu Check regbagchk 0 220 109 13 #false Use Regbag
        	menu Check cutchk 112 220 109 13 #false Cut Corpses
        	menu Check hotkeychk 56 244 85 13 #false Use HotKey
        	;menu Font Size 7
        	menu Button startbutton 56 266 101 29 [ START]
        	;---	
        SET %null
        	IF *bml_minvalue <> %null && *bml_minvalue <> N/A
        		MENU SET value *bml_minvalue
        	IF *bml_hotkey  <> %null && *bml_hotkey <> N/A
        		MENU SET hotkey *bml_hotkey
        	IF *bml_settings <> %null && *bml_settings <> N/A
        	{
        		IF gold IN *bml_settings
        			menu SET goldchk #TRUE
        		IF gem IN *bml_settings
        			menu SET gemchk #TRUE
        		IF reg IN *bml_settings
        			menu SET regchk #TRUE
        		IF ammo IN *bml_settings
        			menu SET ammochk #TRUE
        		IF scroll IN *bml_settings
        			menu SET scrollchk #TRUE
        		IF solen IN *bml_settings
        			menu SET solenchk #TRUE
        		IF juka IN *bml_settings
        			menu SET jukachk #TRUE
        		IF paragon IN *bml_settings
        			menu SET paragonchk #TRUE
        		IF res IN *bml_settings
        			menu SET resourcechk #TRUE
        		IF sword IN *bml_settings
        			menu SET swordchk #TRUE
        		IF fence IN *bml_settings
        			menu SET fencechk #TRUE
        		IF mace IN *bml_settings
        			menu SET macechk #TRUE
        		IF bow IN *bml_settings
        			menu SET bowchk #TRUE
        		IF armor IN *bml_settings
        			menu SET armorchk #TRUE
        		IF shield IN *bml_settings
        			menu SET shieldchk #TRUE
        		IF jewel IN *bml_settings
        			menu SET jewelchk #TRUE
        		IF instrument IN *bml_settings
        			menu SET instrumentchk #TRUE
        		IF other IN *bml_settings
        			menu SET otherchk #TRUE
        		IF user1 IN *bml_settings
        			menu SET user1chk #TRUE
        		IF user2 IN *bml_settings
        			menu SET user2chk #TRUE
        		IF all IN *bml_settings
        			menu SET allchk #TRUE
        		IF close NOTIN *bml_settings
        			menu SET closechk #FALSE
        		IF regbag IN *bml_settings
        			menu SET regbagchk #TRUE
        		IF cut IN *bml_settings
        			menu SET cutchk #TRUE
        		IF hotkey IN *bml_settings
        			menu SET hotkeychk #TRUE
        	}
        	menu Show
        	SET #menubutton N/A
        menuloop:
        	MENU GET cutchk
        	IF #MENURES <> %oldchk
        		MENU SET resourcechk #MENURES
        	SET %oldchk #MENURES
        	IF #MENUBUTTON = startbutton
        	{
        		SET #menubutton N/A
        		GOTO menuend
        	}
        	IF #menubutton = closed
        		HALT
        	GOTO menuloop
        menuend:
        	Menu HIDE	;=========================================================================================================
        	;Below the lootlist is set according to the users menu choices, everything specified will be looted automagically.
        	;=========================================================================================================
        	GOSUB ClearGlobal bml_settings
        	GOSUB ClearGlobal bml_minvalue
        	SET %bml_lootlist
        	SET %lootbag #TRUE
        	SET %closecorpse #FALSE
        	SET %hotkey #FALSE
        	MENU GET goldchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %gold
        		GOSUB WriteToGlobal bml_settings gold
        	}
        	MENU GET gemchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %jewels
        		GOSUB WriteToGlobal bml_settings gem
        	}
        	MENU GET regchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %reagents
        		GOSUB WriteToGlobal bml_settings reg
        		MENU GET regbagchk
        		SET %regbag #MENURES
        		IF #MENURES
        			GOSUB WriteToGlobal bml_settings regbag
        	}
        	MENU GET ammochk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %arrowsbolts
        		GOSUB WriteToGlobal bml_settings ammo
        	}
        	MENU GET solenchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %solenloot
        		GOSUB WriteToGlobal bml_settings solen
        	}
        	MENU GET jukachk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %jukaloot
        		GOSUB WriteToGlobal bml_settings juka
        	}
        	MENU GET paragonchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %paragonloot
        		GOSUB WriteToGlobal bml_settings paragon
        	}
        	MENU GET resourcechk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %leather
        		SET %bml_lootlist %bml_lootlist , %feather
        		SET %bml_lootlist %bml_lootlist , %bones
        		SET %bml_lootlist %bml_lootlist , %wool
        		GOSUB WriteToGlobal bml_settings res
        	}
        	MENU GET instrumentchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %bml_instrumentlist
        		GOSUB WriteToGlobal bml_settings instrument
        	}
        	MENU GET otherchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %other
        		GOSUB WriteToGlobal bml_settings other
        	}
        	MENU GET scrollchk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %scrolls
        		GOSUB WriteToGlobal bml_settings scroll
        	}
        	MENU GET user1chk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %user1
        		GOSUB WriteToGlobal bml_settings user1
        	}
        	MENU GET user2chk
        	IF #MENURES
        	{
        		SET %bml_lootlist %bml_lootlist , %user2
        		GOSUB WriteToGlobal bml_settings user2
        	}
        	MENU GET cutchk
        	SET %mcut #MENURES
        	IF #MENURES
        		GOSUB WriteToGlobal bml_settings cut
        	;=======================================
        	;Set the Equipment lootlist from the user selection
        	;=======================================
        	SET %bml_equiplootlist
        	SET %bml_lootequipment #FALSE
        	MENU GET value
        	SET *bml_minvalue #MENURES
        	MENU GET swordchk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_swordlist
        		GOSUB WriteToGlobal bml_settings sword
        	}
        	MENU GET  fencechk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_fencinglist
        		GOSUB WriteToGlobal bml_settings fence
        	}
        	MENU GET macechk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_macelist
        		GOSUB WriteToGlobal bml_settings mace
        	}
        	MENU GET bowchk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_bowlist
        		GOSUB WriteToGlobal bml_settings bow
        	}
        	MENU GET armorchk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_armorlist
        		GOSUB WriteToGlobal bml_settings armor
        	}
        	MENU GET shieldchk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_shieldlist
        		GOSUB WriteToGlobal bml_settings shield
        	}
        	MENU GET jewelchk
        	IF #MENURES
        	{
        		SET %bml_equiplootlist %bml_equiplootlist , %bml_jewelerylist
        		GOSUB WriteToGlobal bml_settings jewel
        	}
        	MENU GET closechk
        	IF #MENURES
        	{
        		GOSUB WriteToGlobal bml_settings close
        		SET %closecorpse #TRUE
        	}
        	MENU GET hotkeychk
        	IF #MENURES
        	{
        		GOSUB WriteToGlobal bml_settings hotkey
        		MENU GET hotkey
        		SET *bml_hotkey #MENURES
        		SET %hotkey #TRUE
        	}
        	IF %bml_equiplootlist <> %null
        		SET %bml_lootequipment #TRUE
        	MENU GET allchk
        	IF #MENURES
        	{
        		GOSUB WriteToGlobal bml_settings all
        		SET %bml_lootlist *
        		RETURN
        	}
        	;=======================================
        	IF %bml_lootlist = %reagents
        	{
        		SET %lootbag #FALSE
        		SET %regbag #TRUE
        	}
        	IF %bml_lootlist = %null && %bml_equiplootlist = %null
        	{
        		DISPLAY OK No loot selected!$Halting script.
        		HALT
        	}
        RETURN


        TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

        The VAX -->>> http://www.myspace.com/thevaxband

        --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

        Commenta


        • #5
          codice:
          ;--------- EasyUO Menu Designer Code End ---------
          ;------------------------------
          ;* @name s7MoveToPos
          ;* @author snicker7
          ;* @ver 1.0 31Jan05
          ;* @purpose Just Another Item Dragger.
          ;* @params 	%1 is the item to be dragged
          ;*		%2 is the x-coord to drop to
          ;* 		%3 is the y-coord to drop to
          ;*		%4 is the timeout in seconds
          ;* 		%5 is the amount to be dragged (blank for all)
          ;* @returns 	#true if drop was successful
          ;*		#false on error (drop to backpack, insufficient params, failed to drag)
          ;*		halt on critical error
          ;* @notes moves any item to a position on the screen. Will
          ;*	attempt to drop on character if drop fails. If character
          ;*	drop fails, halts and error message to avoid crash.
          ;* @dependencies	s7WaitForAction
          ;* @example: call s7Subs.euo s7MoveToPos #findid 7 9 4 77
          ;* @status unknown
          sub s7MoveToPos
          	if %0 < 4
          		return #false
          	namespace Push
          	namespace Local _s7MvToPos
          	set !_ID %1
          	set !_x %2
          	set !_y %3
          	set !_tO %4
          	set !_Amt #spc
          	if %0 > 4
          		set !_Amt %5
          	set !_retry 0
          	_s7MvToPos_SD:
          	finditem !_ID
          	if #findkind = -1
          	{
          		set #result #false
          		goto _s7MvToPos_exit
          	}
          	gosub s7WaitForAction %bml_action_wait
          	event drag #findid
          	if #findstack > 1
          	{
          		set !_timeOut #scnt
          		_s7MvToPos_WFSG:
          		if #contname <> stack_gump
          		{
          			wait 1
          			if #contname = drag_gump
          				goto _s7MvToPos_WFDG
          			if !_timeOut + !_tO < #scnt
          			{
          				set !_retry !_retry + 1
          				if !_retry > 2 2
          					set #result #false
          					goto _s7MvToPos_exit
          				goto _s7MvToPos_SD
          			}
          			goto _s7MvToPos_WFSG
          		}
          		if !_Amt > #findstack
          		{
          			set !_Amt #findstack
          		}
          		msg !_Amt , $
          	}
          	set !_retry 0
          	set !_timeOut #scnt
          	_s7MvToPos_WFDG:
          	if #lliftedkind <> 1
          	{
          		wait 1
          		if !_timeOut + !_tO < #scnt
          		{
          			set !_retry !_retry + 1
          			if !_retry > 2 2
          				set #result #false
          				goto _s7MvToPos_exit
          			goto _s7MvToPos_SD
          		}
          		goto _s7MvToPos_WFDG
          	}
          	set !_retry 0
          	click !_x !_y p
          	set !_timeout #scnt
          	_s7MvToPos_WFDrp:
          	if #lliftedkind = 1
          	{
          		wait 1
          		if !_timeout + !_t0 < #scnt
          		{
          			set !_retry !_retry + 1
          			if !_retry = 1
          			{
          				set !_x #clixres / 2
          				set !_y ( #cliyres / 2 ) - 30
          				click !_x !_y p
          				set #result #false
          				set !_timeout #scnt
          				goto _s7MvToPos_WFDrp
          			}
          			if !_retry = 2
          			{
          				display ok You have failed to drop an item to the correct position.$$
          					+The script is now halting to prevent a crash.
          				halt
          			}
          		}
          		goto _s7MvToPos_WFDrp
          	}
          	set #result #true
          	_s7MvToPos_exit:
          	namespace pop
          return #result
          ;------------------------------
          ;* @name s7WaitForAction
          ;* @author snicker7
          ;* @ver 1.1 31Jan05
          ;* @purpose waits 1.3 seconds before continuing, useful for waiting to perform
          ;*    another action
          ;* @params 	none
          ;* @returns none
          ;* @notes probably not an original idea, but I need to use it frequently and it
          ;*    was easier to write it myself than to try to look for it as written by 
          ;*    someone else
          ;* @example: call s7Subs.euo s7WaitForAction 13
          ;* @status tested good
          sub s7WaitForAction
          	_s7WaitForAction:
          	if %_s7ActionTimer + %1 > #scnt2 2
          		wait 1
          		goto _s7WaitForAction
          	set %_s7ActionTimer #scnt2
          return
          ;=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|
          ; Script Name: IWMPAvailableWeight Sub
          ; Author: Iwantmypot
          ; Version: 1.01b
          ; Client Tested with: 5.0.0b
          ; EUO version tested with: 1.42.00B3
          ; Shard OSI / FS: Origin (OSI)
          ; Revision Date: 8/02/05
          ; Public Release: 5/19/05
          ; Global Variables Used: none
          ; Purpose: Determines the available weight a character can hold in their backpack.
          ;
          ; Thanks to Bad_Maniac for reminding me to update my scripts for UOML.
          ;=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|
          sub IWMPAvailableWeight
          {
          if %0 = 0 || ( %1 <> #True && %1 <> #False )
             set %1 #False
          namespace push
          namespace local IWMPAvailableWeight
          set !lpc #lpc
          set #lpc 200
          event property #backpackid
          wait 1
          set !two #property
          str Pos !two Items,
          set !one #strres + 6
          str del !two 1 !one
          set !two #strres
          str Pos !two /
          set !one #strres - 1
          str left !two !one
          set !current #strres
          set !two #property
          str Pos !two !current
          set !one #strres
          str len !current
          set !one !one + #strres
          str del !two 1 !one
          set !two #strres
          str Pos !two Stones
          set !one #strres - 2
          str left !two !one
          set !max #strres
          set #result !max - !current
          if #result + #weight > #maxweight && ! %1
             set #result #maxweight - #weight
          set #lpc !lpc
          namespace clear
          namespace pop
          return #result
          }
          ;------------------------------
          ;* @name CheckFreeShard
          ;* @ver 1.0 2Feb05
          ;* @author  Roadkill
          ;* @purpose  checks if you're on a known OSI shard or not
          ;* @params %1 optional, variablename to return #true/#false in, #true if on a freeshard
          ;* @returns #result and @%1 #true if on a freeshard, #false if on a known OSI shard.
          ;* @example call rksubs.txt CheckFreeShard <@%1 varname, opt><@#result #true if #shard notin osi list
          ;------------------------------
          sub CheckFreeShard
          	set !OSIshards pacific_sonoma_baja_legends_atlantic_chesapeake_catskills_lake , #spc , austin
          	+_napa , #spc , valley_lake , #spc , superior_great , #spc , lakes_siege , #spc , perilous_europa
          	+_drachenfels_oceania_origin_wakoku_formosa_arirang_balhae_asuka_yamato_mugen_hokuto_misuho_izumo_sakura_
          	set !result #shard notin !OSIshards
          	if %0 >= 1 && %1 <> n/a
          		set % . %1 !result
          return !result
          ;WriteToGlobal======================
          ;%1 is the global to write to (no *)
          ;%2 to %N are the words or values to write
          ;================================
          SUB WriteToGlobal
          	FOR %i 2 %0
          	{
          		IF % . %i NOTIN * . %1
          			SET * . %1 * . %1 , % . %i , _
          	}
          RETURN
          ;ClearGlobal=======================
          ;%1 is the global to clear (no *)
          ;================================
          SUB ClearGlobal
          	SET * . %1
          RETURN
          Scusate il numero di messaggi infinito...ma è lungo!! (se c'è qualche problema chiudetelo pure e in caso posto il file txt hostandolo su megaupload)


          TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

          The VAX -->>> http://www.myspace.com/thevaxband

          --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

          Commenta


          • #6
            Ho provato lo script ed ho visto che il problema risiede nell'uso delle forbici, prima era possibile tagliare le risorse con le forbici anche fuori dallo zaino mentre adesso non è più possibile. Questo fa bloccare lo script appena ci sono ossa o pelli da tagliare nei corpi.

            Il problema è facilmente risolvibile scaricando l'ultima versione dello script dal sito di euo, l'autore ha aggiornato lo script anche con altri fix molto utili, dai un'occhiata al changelog nel topic per capire: http://www.easyuo.com/forum/viewtopi...88c9f6c7448121

            Edit: serve una modifica comunque (versione 2.70 final)

            alla riga 701 circa cambia cosi tutto quello che è nelle parentesi:
            codice:
            	IF %bml_freeshard
            	{
            	GOSUB MoveItem %mi_itemid %mac_cont #BACKPACKID
            	WAIT %bml_waittime
              GOSUB Cut %mi_itemid
            	}
            devi avere delle forbici nello zaino
            Ultima modifica di fengyr; 20-08-2010, 13:28.
            ____________________________________________________________________

            Il p Fengyr
            ____________________________________________________________________
            : algander#6292

            Commenta


            • #7
              grazie infinite!!!

              proverò un pò tutto, davvero gentilissimo ^^


              TOGLIETEMI TUTTO MA NON LE MIE HOODED!!!!

              The VAX -->>> http://www.myspace.com/thevaxband

              --->>> Un NPC di quelli da scortare incontra una formica dopo essere rimasto insoddisfatto dell'ultimo viaggio e le dice "Meglio SOLEN che mal accompagnato!!!" <<<--- by jPp

              Commenta

              Sto operando...
              X