Register for your free account! | Forgot your password?

You last visited: Today at 13:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Drop buff

Discussion on Drop buff within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2014
Posts: 16
Received Thanks: 3
Drop buff

Hello, i'm working on function "Dropbuff"

I want drop my recall on my heros number n°2
recall ID=925
héro number = 2
so i write

Code:
Dropbuff(925, 2)
It do nothing...

i post a function (from gwa²)

Code:
;~ Description: Stop maintaining enchantment on target.
Func DropBuff($aSkillID, $aAgentID, $aHeroNumber = 0, $aHeroID = GetHeroID($aHeroNumber))
   Local $lBuffCount = GetBuffCount($aHeroNumber, $aHeroID)
   Local $lOffset[4] = [0, 0x18, 0x2C, 0x510]
   Local $lCount = MemoryReadPtr($mBasePointer, $lOffset)
   ReDim $lOffset[5]
   $lOffset[3] = 0x508
   For $i = 0 To $lCount[1] - 1
	  $lOffset[4] = 0x24 * $i
	  $lBuffer = MemoryReadPtr($mBasePointer, $lOffset)
	  If $lBuffer[1] = $aHeroID Then
		 $lOffset[4] = 0x4 + 0x24 * $i
		 ReDim $lOffset[6]
		 For $j = 0 To $lBuffCount - 1
			$lOffset[5] = 0 + 0x10 * $j
			$lBuffAddress = MemoryReadPtr($mBasePointer, $lOffset)
			If $lBuffAddress[1] = $aSkillID And MemoryRead($lBuffAddress[0] + 12, 'long') = ConvertID($aAgentID) Then
			   Return SendPacket(0x8, $HEADER_STOP_MAINTAIN_ENCH, MemoryRead($lBuffAddress[0] + 8, 'long'))
			   ExitLoop 2
			EndIf
		 Next
	  EndIf
   Next
EndFunc   ;==>DropBuff
Thanks for your answers
yuramisu is offline  
Old 04/29/2018, 21:38   #2
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
Quote:
Originally Posted by yuramisu View Post
Hello, i'm working on function "Dropbuff"

I want drop my recall on my heros number n°2
recall ID=925
héro number = 2
so i write

Code:
Dropbuff(925, 2)
It do nothing...

i post a function (from gwa²)

Code:
;~ Description: Stop maintaining enchantment on target.
Func DropBuff($aSkillID, $aAgentID, $aHeroNumber = 0, $aHeroID = GetHeroID($aHeroNumber))
   Local $lBuffCount = GetBuffCount($aHeroNumber, $aHeroID)
   Local $lOffset[4] = [0, 0x18, 0x2C, 0x510]
   Local $lCount = MemoryReadPtr($mBasePointer, $lOffset)
   ReDim $lOffset[5]
   $lOffset[3] = 0x508
   For $i = 0 To $lCount[1] - 1
	  $lOffset[4] = 0x24 * $i
	  $lBuffer = MemoryReadPtr($mBasePointer, $lOffset)
	  If $lBuffer[1] = $aHeroID Then
		 $lOffset[4] = 0x4 + 0x24 * $i
		 ReDim $lOffset[6]
		 For $j = 0 To $lBuffCount - 1
			$lOffset[5] = 0 + 0x10 * $j
			$lBuffAddress = MemoryReadPtr($mBasePointer, $lOffset)
			If $lBuffAddress[1] = $aSkillID And MemoryRead($lBuffAddress[0] + 12, 'long') = ConvertID($aAgentID) Then
			   Return SendPacket(0x8, $HEADER_STOP_MAINTAIN_ENCH, MemoryRead($lBuffAddress[0] + 8, 'long'))
			   ExitLoop 2
			EndIf
		 Next
	  EndIf
   Next
EndFunc   ;==>DropBuff
Thanks for your answers
I didn't use this in a while but im pretty sure the 2nd arg is wrong.
So you should call it this way:

Example1: You have Recall on a Hero.
Code:
$aSkillID_Recall = 925
$aHeroNumber= 2
$aHeroAgentID = GetHeroID($aHeroNumber)

Dropbuff($aSkillID_Recall, $aHeroAgentID)
Example2: A Hero has Recall on you:
Code:
$aSkillID_Recall = 925
$aHeroNumber= 2
$aMyID = GetMyID()

Dropbuff(aSkillID_Recall, $aMyID, $aHeroNumber)
DerMoench14 is online now  
Old 05/01/2018, 14:10   #3
 
elite*gold: 0
Join Date: Mar 2014
Posts: 16
Received Thanks: 3
Quote:
Originally Posted by DerMoench14 View Post
I didn't use this in a while but im pretty sure the 2nd arg is wrong.
So you should call it this way:

Example1: You have Recall on a Hero.
Code:
$aSkillID_Recall = 925
$aHeroNumber= 2
$aHeroAgentID = GetHeroID($aHeroNumber)

Dropbuff($aSkillID_Recall, $aHeroAgentID)
Example2: A Hero has Recall on you:
Code:
$aSkillID_Recall = 925
$aHeroNumber= 2
$aMyID = GetMyID()

Dropbuff(aSkillID_Recall, $aMyID, $aHeroNumber)
Hello thanks
But don"t working :/ this function do nothing
i tried functions " DropAllbuffs(), DropAllBonds() Same way

Note : i added "925" in DropAllBonds function : Case 263,244,242, 925 ; $SKILLID_Protective_Bond, $SKILLID_Life_Attunement, $SKILLID_Balthazars_Spirit $SKILLID_Recall"

Hum, DropAllbonds() works.
yuramisu is offline  
Old 05/01/2018, 16:40   #4
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
Quote:
Originally Posted by yuramisu View Post
Hello thanks
But don"t working :/ this function do nothing
i tried functions " DropAllbuffs(), DropAllBonds() Same way

Note : i added "925" in DropAllBonds function : Case 263,244,242, 925 ; $SKILLID_Protective_Bond, $SKILLID_Life_Attunement, $SKILLID_Balthazars_Spirit $SKILLID_Recall"

Hum, DropAllbonds() works.
Yeah you're right, i was partially wrong!
It's a bit more complicated.

Code:
DropBuff($aSkillID, $aAgentID, $aHeroNumber = 0, $aHeroID = GetHeroID($aHeroNumber))
$aSkillID is obviously, no need to explain.
aAgentID is NOT the Agent you've casted a Skill on but rather the Agent who got the Buff.
For example, if you (Agent A) cast Balthazar's Spirit on a Target (Agent B) then Agent B got the Buff (Enchantment) so you would have to call
Code:
DropBuff($aSkillID, $aAgentID_Agent_B)
but
Recall is different. When you cast Recall on a Target then yourself got the Buff.
So you need to call
Code:
DropBuff($aSkillID, $aMyID)
Hope that clarified these things a bit.
DerMoench14 is online now  
Old 08/16/2019, 15:30   #5
 
solos's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 324
Received Thanks: 85
I would like to bring this back up to life.
I'm actually messed up with dropbuff aswell doing exactly the same as the threadstarter. I try to run the release of recall being casted on a teammate before. i tried all the above and it didn't work for me- instead nothing happens at all. i tried to debug with msgbox, but didn't get further.
solos is offline  
Reply


Similar Threads Similar Threads
buff bot/drop hack-pick up/item drop
07/12/2012 - Metin2 - 2 Replies
i saw many topics about what i said in title , i would like to know if is available any of this for GF servers :) i mean DROP HACK - i heard about bots who pick up other players items , ITEM DROP - a bot who increase drop chances and BUFF BOT ... i had search the forum and i didnt found anything to download , just few expired links... i'll be very pleased if someone know something about this bots ,in special DROP HACK , and he can explain or leave here a link to...
Suche Torkas Buff geben Sertain Buff
07/16/2011 - Metin2 Trading - 0 Replies
Suche ein Buff sollte lvl 35 sein Krit Segen M haben Gebe S15 Buff lvl 43 K Segen m2 24,9% und krit m1 24,4% Reflekt 3 7,6%
[B]Lv 34 Buff auf S9 Legroia [S]Buff auf Metin2.SG
04/04/2011 - Metin2 Trading - 2 Replies
Hey, wie der Titel bereits sagt biete ich meine Drachenschami Lv 34. Skills: HDD M1, Rest auf Segen. Sie hat Goldohrringe+6 und full Int. Bei Interesse hier in den Thread schreiben.
Kaufe Buff Shamane Metin2.us Free Kingdom [WTB] Buff Shaman Metin2.us Free Kingdom
02/23/2011 - Metin2 Trading - 0 Replies
Hello ;) I buy any buff shaman in metin2.us free kindom but it should be having g - p buffs ( enchant and shield) thanks ;) Ich kauf ne buffi auf metin2.us free kingdom, sie sollte p - g haben ( also hdd und segen) danke ;) Paying with paysafecard! Zahle mit Paysafecard!



All times are GMT +1. The time now is 13:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.