Hi, I would like to change the autonexus code to be like this (pseudo code)
Code:
if (life < 30%)
if (priest % mana ok)
hit space
else if (potion in inventory)
use it
else
autonexus
But, know only the mana position, not the current class position, the inventory position, and the health potion code.. (and even I don't know how to say press space, or use potion!)
Ok, I really don't know a lot, but I don't want the code ready!!! only some hint
(such as the if and else in actionscript or assembler!)
Thanks!
---------- Post added at 05:17 PM ---------- Previous post was at 05:13 PM ----------
oh... I though I was in the help section, damn! sorry!
---------- Post added at 05:26 PM ---------- Previous post was at 05:17 PM ----------
Searching I found these:
Code:
in _-0CP\Options.class.asasm (16 hits)
Line 2289: pushstring "Use Inventory Slot 1"
Line 2290: pushstring "Use item in inventory slot 1"
Line 2300: pushstring "Use Inventory Slot 2"
Line 2301: pushstring "Use item in inventory slot 1"
Line 2308: pushstring "Use Inventory Slot 3"
Line 2309: pushstring "Use item in inventory slot 1"
Line 2316: pushstring "Use Inventory Slot 4"
Line 2317: pushstring "Use item in inventory slot 1"
Line 2325: pushstring "Use Inventory Slot 5"
Line 2326: pushstring "Use item in inventory slot 1"
Line 2333: pushstring "Use Inventory Slot 6"
Line 2334: pushstring "Use item in inventory slot 1"
Line 2360: pushstring "Use Inventory Slot 7"
Line 2361: pushstring "Use item in inventory slot 1"
Line 2379: pushstring "Use Inventory Slot 8"
Line 2380: pushstring "Use item in inventory slot 1"
and this
Code:
in com\company\assembleegameclient\net\_-1f.class.asasm (13 hits)
Line 10109: getproperty QName(PackageNamespace(""), "INVENTORY_0_STAT")
Line 11009: getproperty QName(PackageNamespace(""), "INVENTORY_0_STAT")
Line 11031: getproperty QName(PackageNamespace(""), "INVENTORY_1_STAT")
Line 11064: getproperty QName(PackageNamespace(""), "INVENTORY_2_STAT")
Line 11094: getproperty QName(PackageNamespace(""), "INVENTORY_3_STAT")
Line 11129: getproperty QName(PackageNamespace(""), "INVENTORY_4_STAT")
Line 11138: getproperty QName(PackageNamespace(""), "INVENTORY_5_STAT")
Line 11157: getproperty QName(PackageNamespace(""), "INVENTORY_6_STAT")
Line 11178: getproperty QName(PackageNamespace(""), "INVENTORY_7_STAT")
Line 11188: getproperty QName(PackageNamespace(""), "INVENTORY_8_STAT")
Line 11211: getproperty QName(PackageNamespace(""), "INVENTORY_9_STAT")
Line 11227: getproperty QName(PackageNamespace(""), "INVENTORY_10_STAT")
Line 11236: getproperty QName(PackageNamespace(""), "INVENTORY_11_STAT")
I think something is moving... ^^
---------- Post added at 05:30 PM ---------- Previous post was at 05:26 PM ----------
plus I found theese
com/company/assembleegameclient/ui/Inventory.class.asasm and script one..
---------- Post added at 05:34 PM ---------- Previous post was at 05:30 PM ----------
UHU nice this
Code:
findpropstrict QName(PackageNamespace("_-0CP"), "_-GX")
pushstring "useInvSlot1"
pushstring "Use Inventory Slot 1"
pushstring "Use item in inventory slot 1"
constructprop QName(PackageNamespace("_-0CP"), "_-GX"), 3
callpropvoid QName(PrivateNamespace("*", "_-0CP:Options#0"), "_-yZ"), 1
only I really don't understand what the heck means all this
is the pushstring "UseInvSlot1" the function to use invslot 1... or is the findpropstrict??
---------- Post added at 05:43 PM ---------- Previous post was at 05:34 PM ----------
OH dear, i found this ...
AVM2 Instructions
it's... beatifull... I love this! HAHA (anything usefull like this? link it!!!)
---------- Post added at 06:07 PM ---------- Previous post was at 05:43 PM ----------
I realized that if someone (a very gentle one) could comment the autonexus code, I could try to understand the programming sintax (i can program in c/c++/java and others so maybe I will understand something)....
like commenting this code, I sure will understand a lot (I know I'm asking a LOT... )
Code:
L461:
getlex QName(PackageNamespace(""), "_-0HB")
getlocal1
setproperty QName(PackageNamespace(""), "lastDamage_")
L464:
pushtrue
pop
getlocal0
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "player_")
ifne L475
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "name_")
pushstring "Nexus"
ifeq L475
getlex QName(PackageNamespace(""), "_-aY")
convert_d
getlex QName(PackageNamespace(""), "_-LT")
convert_d
divide
pushbyte 7
convert_d
pushbyte 20
convert_d
divide
ifgt L475
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "gsc_")
callpropvoid QName(PackageNamespace(""), "_-M6"), 0
L475:
pushtrue
L465:
returnvalue
end ; code
end ; body
end ; method
end ; trait