How can i unequip an item without equipping another item instead?
Code:
Global Const $HEADER_ITEM_UNEQUIP = 0x52 ;Unequip item
Sorry, I am not able to help much at the moment but I can provide you this from gwapi. The structure looks correct but I do not think you can directly port this but it gives you an idea of what needs to be done.
Sorry, I am not able to help much at the moment but I can provide you this from gwapi. The structure looks correct but I do not think you can directly port this but it gives you an idea of what needs to be done.
Hello i'm trying to make a global array with all the 1 point alcohol so i can use them with my Deldrimor skills and don't have to change the alcohol model id all the time i use:QUOTE
Code:
Global $OnePoint_Alcohol_Array[11] = [910, 5585, 6049, 6367, 6375, 15477, 19171, 19172, 19173, 22190, 28435]
Global $ThreePoint_Alcohol_Array[7] = [2513, 6366, 24593, 30855, 31145, 31146, 35124]
Global $FiftyPoint_Alcohol_Array[1] = [36682]
Global Const $ITEM_ID_Hunters_Ale = 910
Global Const $ITEM_ID_Flask_of_Firewater = 2513
Global Const $ITEM_ID_Dwarven_Ale = 5585
Global Const $ITEM_ID_Witchs_Brew = 6049
Global Const $ITEM_ID_Spiked_Eggnog = 6366
Global Const $ITEM_ID_Vial_of_Absinthe = 6367
Global Const $ITEM_ID_Eggnog = 6375
Global Const $ITEM_ID_Bottle_of_Rice_Wine = 15477
Global Const $ITEM_ID_Zehtukas_Jug = 19171
Global Const $ITEM_ID_Bottle_of_Juniberry_Gin = 19172
Global Const $ITEM_ID_Bottle_of_Vabbian_Wine = 19173
Global Const $ITEM_ID_Shamrock_Ale = 22190
Global Const $ITEM_ID_Aged_Dwarven_Ale = 24593
Global Const $ITEM_ID_Hard_Apple_Cider = 28435
Global Const $ITEM_ID_Bottle_of_Grog = 30855
Global Const $ITEM_ID_Aged_Hunters_Ale = 31145
Global Const $ITEM_ID_Keg_of_Aged_Hunters_Ale = 31146
Global Const $ITEM_ID_Krytan_Brandy = 35124
Global Const $ITEM_ID_Battle_Isle_Iced_Tea = 36682
hello, I have a coding problem in the function fight I want to make sure that the bot attack priority Forgotten Sage.and if there is not in the group he normally target. could you m ' please help? cordially
hello, I have a coding problem in the function fight I want to make sure that the bot attack priority Forgotten Sage.and if there is not in the group he normally target. could you m ' please help? cordially
There are some scripts that target a boss or a healer in a group first. Think about what scripts might have this and look through the functions to see if there is something to help. I know Kilroy has something like this so you can try editing the below first.
Code:
Func SelectTarget()
$target = GetCurrentTarget()
$Me = GetAgentByID(-2)
If $target <> 0 And DllStructGetData($target, 'Type') = 219 _
And DllStructGetData($target, 'Allegiance') = 3 And GetIsDead($target) = 0 Then
If TimerDiff($tSwitchtarget) < 1000 Or GetDistance($Me, $target) < 100 Then
Return DllStructGetData($target, 'Id')
Else
ConsoleWrite("Switching target, out of range!" & [MENTION=3576271]CRLF[/MENTION])
EndIf
EndIf
$tSwitchtarget = TimerInit()
Update("Looking for items")
PickupItems(1000)
Update("Selecting new target")
$kilroy = GetAgentById($kilroyID)
If GetIsDead($kilroy) Then
$target = GetNearestEnemyToAgent($meID)
ConsoleWrite("Kilroy is dead! Roaming!" & [MENTION=3576271]CRLF[/MENTION])
Else
$target = GetAgentByID(GetTarget($kilroy))
If $target = 0 Or GetIsDead($target) Or DllStructGetData($target, 'Allegiance') <> 3 Then
$possibletarget = GetNearestEnemyToAgent($kilroy)
If GetDistance($possibletarget, $kilroy) < 1250 Then
ConsoleWrite("Roaming!" & [MENTION=3576271]CRLF[/MENTION])
$target = $possibletarget
EndIf
Else
ConsoleWrite("Trying to copy target!" & [MENTION=3576271]CRLF[/MENTION])
EndIf
EndIf
If GetIsBoss($target) Then
;It's a boss, lets search for minions first!
$possibletarget = GetNearestEnemyToAgent($target)
If $possibletarget <> 0 And GetDistance($possibletarget, $kilroy) < 1250 Then
ConsoleWrite("Retargeting to minion!" & [MENTION=3576271]CRLF[/MENTION])
$target = $possibletarget
EndIf
EndIf
If $target <> 0 And GetIsDead($target) = 0 Then
$targetId = DllStructGetData($target, 'Id')
Update("Attacking " & $targetId)
ChangeTarget($target)
Sleep(GetPing())
Attack($target)
Return $targetId
EndIf
EndFunc ;==>SelectTarget
Not 100% sure... but two updates ago we raised most of the second PeformAction values by +6.... so this would change the 0x18 to 0x1E and that function should work.
@
for completeness when you have time can you also add the Func GetIsBoss() to message #100
@
Did that help you solve the problem...?? I use to use a Func GetAgentbyName() to help me with situations like this and then Func Target($lAgent)… Let me know if you still need help with this.
Hey all, I’m a full-time software developer and recently got back into Guild Wars to start making bots as a hobby. This forum has been an awesome resource and props to all of the main contributors around here making/updating bots and helping out everyone. Some people seem unappreciative of the few folk that are really doing a lot to support this community and I want to say thank you to those guys.
I’ve started editing a Vaettir bot with success but I’d like to make it more intelligent when it comes to handling items. Things like salvaging certain Mods, saving r9 items of specific attributes, salvaging Highly Salvagable items, and salvaging items for specific materials.
My idea was to make a script that bots could require in their script that would act as a module to handle these different scenarios with a GUI to select and prioritize what inscriptions/mods you’d like to salvage/store, items and requirements you’d like to store, materials you’d aim to salvage from items that don’t meet any of the other criteria, etc.
My question is, is this something that’s already done or attempted? Is this more work than I assume? I’ve laid out a decent sized framework of GUI, functions and workflow. But I haven’t developed a bot start to finish yet and I’m not sure if it’s even possible to make a ‘module’ like this that can be essentially plugged in to existing bots to handle their item/inventory logic.
Hello guys, i got hacked and gm didnt help me :( so i ask for help here 12/22/2009 - Kal Online - 25 Replies Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days...
GM Reply
Hello.
This is Kalonline.
We checked over your report and blocked hackers.
HELP! I need help scripting 02/06/2007 - Conquer Online 2 - 1 Replies OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help 12/13/2006 - Lineage 2 - 0 Replies Hey, just asking a few questions hope you don't mind ^_^
I'm looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time.
I've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting.
If this isn't possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case?
Thanks. ^_^
Note: If you...
I need help scripting 09/05/2006 - General Coding - 0 Replies Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D