ragazzi, ogni volta ke metto in play lo script trovo sempre il client crashato...soluzioni?
[il gioco è aggiornato ma uso un client vekkiotto (6.0.14.1)]
[il gioco è aggiornato ma uso un client vekkiotto (6.0.14.1)]
sub findNpc namespace push namespace local findNpc set !type %1 set !previous %2 set !arraySize 0 set !element 1 _findNpc: GoSub CheckForConnectionLost finditem HS_IS G_8 ignoreitem #findid if #findkind <> -1 { if #findrep = 7 { event property #findid if !type = tailor { if guild notin #property { if weaver in #property || tailor in #property { set !npc . !element #findid set !arraySize !arraySize + 1 set !element !element + 1 } } } if !type = smith { if guild notin #property { if blacksmith in #property || armourer in #property { set !npc . !element #findid set !arraySize !arraySize + 1 set !element !element + 1 } } } } goto _findNpc } ignoreitem reset set !npc none for !i 1 !arraySize { GoSub CheckForConnectionLost if !npc . !i <> !previous { set !npc !npc . !i set !i !arraySize } } if !npc = none set #result !previous else set #result !npc namespace pop return #result
_useVendorLoop: finditem !vendorID G if #findkind = -1 { namespace pop return #false } gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY if paper_doll in #contname gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY gosub clickContextMenuOption !_contextOption if ! #result { set !useVendorCnt !useVendorCnt + 1
_useVendorLoop: finditem !vendorID G if #findkind = -1 { namespace pop return #false } [COLOR="Red"];[/COLOR]gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY [COLOR="Red"];[/COLOR]if paper_doll in #contname [COLOR="Red"];[/COLOR] gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY [COLOR="Red"];[/COLOR]gosub clickContextMenuOption !_contextOption [COLOR="Red"]gosub QUELLOCHEVUOI #findid[/COLOR] if ! #result { set !useVendorCnt !useVendorCnt + 1
sub QUELLOCHEVUOI exevent popup %1 4 return #true
_useVendorLoop: finditem !vendorID G if #findkind = -1 { namespace pop return #false } gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY if paper_doll in #contname gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY gosub clickContextMenuOption !_contextOption if ! #result { set !useVendorCnt !useVendorCnt + 1
_useVendorLoop: finditem !vendorID G if #findkind = -1 { namespace pop return #false } [COLOR="Red"];[/COLOR]gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY [COLOR="Red"];[/COLOR]if paper_doll in #contname [COLOR="Red"];[/COLOR] gosub clickScreenXYZ #findx #findy #findz !vendorX !vendorY [COLOR="Red"];[/COLOR]gosub clickContextMenuOption !_contextOption [COLOR="Red"]gosub QUELLOCHEVUOI #findid[/COLOR] if ! #result { set !useVendorCnt !useVendorCnt + 1
sub QUELLOCHEVUOI exevent popup %1 4 return #true
; * Created with CEOAutoRailWriter on 02/18/10 * ; set %endspot 3 set %X1 986 set %Y1 523 set %Z1 -50 set %X2 979 set %Y2 521 set %Z2 -50 set %X3 977 set %Y3 521 set %Z3 -50
; * Created with CEOAutoRailWriter on 02/18/10 * ; set %endspot 3 set %X1 977 set %Y1 521 set %Z1 -50 set %X2 981 set %Y2 515 set %Z2 -50 set %X3 981 set %Y3 513 set %Z3 -50
; * Created with CEOAutoRailWriter on 02/18/10 * ; set %endspot 3 set %X1 981 set %Y1 513 set %Z1 -50 set %X2 984 set %Y2 519 set %Z2 -50 set %X3 986 set %Y3 523 set %Z3 -50
; * Created with CEOAutoRailWriter on 02/18/10 * ; set %endspot 3 set %X1 977 set %Y1 521 set %Z1 -50 set %X2 983 set %Y2 521 set %Z2 -50 set %X3 986 set %Y3 523 set %Z3 -50
set !y !char * 40 + 130 e la sostituisci con questa set !y !char * 40 + 100
if ! #result || !char > 7 set !charCheck #true
;gosub bodcycle 1 7 rail_umbra 2 ;(eventuale)sesto pg dell'elenco
Commenta