HelpNeed Item Switch Script

Posts 1–10 of 10 · Page 1 of 1
Need Item Switch Script
Is there a Script to change weapon, ability, ring?

for example im a archer ad using cbow and want to click the button 1 to switch to dbow?
or pressing button 2 to switch to thunder quiver?

i dont want to manually click the items all time

would make it much easier
Double clicking is already in the game. Its called Contexual Click in the opetions.
thank you have to try
Quote Originally Posted by Maxxxel18 View Post
for example im a archer ad using cbow and want to click the button 1 to switch to dbow?
or pressing button 2 to switch to thunder quiver?
i.e. key press? I've been debating adding this into my multiboxer. Would be very useful rather than double clicking.
contexual thing didnt work.

i just need script or anything that when i got another bow abilty or wahtever with me i can equip that when i cklcik the utton the item is on it changes
Quote Originally Posted by Maxxxel18 View Post
Is there a Script to change weapon, ability, ring?

for example im a archer ad using cbow and want to click the button 1 to switch to dbow?
or pressing button 2 to switch to thunder quiver?

i dont want to manually click the items all time

would make it much easier
here try this: Hotkeys are 1 for slot 1....and 2 for slot 2
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%

SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 3

Suspend on
GroupAdd rotmg, Realm of the Mad God
GroupAdd rotmg, Realm of the Mad God - Mozilla Firefox
GroupAdd rotmg, Realm of the Mad God - Google Chrome
GroupAdd rotmg, realmofthemadgod
GroupAdd rotmg, Play Realm of the Mad God
GroupAdd rotmg, Adobe Flash Player 10
GroupAdd rotmg, Adobe Flash Player 11
WinNotActive()

WinActive()
{
	Suspend Off
	WinWaitNotActive ahk_group rotmg
	{
		WinNotActive()
	}
}
WinNotActive()
{
	Suspend on
	WinWaitActive ahk_group rotmg
	{
		WinActive()
	}
}

; Switch items in you inv!
1::
slot = 1	;;;;; CHANGE TO YOUR WEAPON SWAP INVENTORY SLOT
goto swap

2::
slot = 2	;;;;; CHANGE TO YOUR ABILITY SWAP INVENTORY SLOT
goto swap

swap:
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
SysGet, menuHeight, 15
SysGet, vBorderWidth, 32
SysGet, hBorderWidth, 33
SysGet, titleHeight, 4
ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-low.png
if ErrorLevel {
	ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-high.png
	if ErrorLevel {
		ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-med.png
		if ErrorLevel {
			stretched := true
		}
	}
}
if(stretched){
	posX := 634 + Mod((44 * (slot-1)), (4*44))
	posY := 400 + (44 * ((slot-1)//(4)))
	multiplierX := ((winSizeX-vBorderWidth)/800)
	multiplierY := ((winSizeY-(menuHeight+hBorderWidth+titleHeight))/600)
	posX *= multiplierX
	posY *= multiplierY
} else {
	posX := imageLocX + 30 + Mod((44 * (slot-1)), (4*44)) - vBorderWidth
	posY := imageLocY + 50 + (44 * ((slot-1)//(4))) - (menuHeight+hBorderWidth+titleHeight)
}
CoordMode, Mouse, Client
MouseMove, posX, posY
SendEvent {LButton Down}
SendEvent {LButton Up}
SendEvent {LButton Down}
SendEvent {LButton Up}
CoordMode, Mouse, Window
MouseMove, mousePosX, mousePosY
stretched := false
Return
i play on steam is this a problem?
and how to open the script. with hotkeynet it isnt working

i try autohotkey


WORKS PERFETC THANKS!!!


one problem now... when i play fullscreen v2 it just shoots how to make it working with fulscreen v2
Quote Originally Posted by dg123 View Post
here try this: Hotkeys are 1 for slot 1....and 2 for slot 2
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%

SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 3

Suspend on
GroupAdd rotmg, Realm of the Mad God
GroupAdd rotmg, Realm of the Mad God - Mozilla Firefox
GroupAdd rotmg, Realm of the Mad God - Google Chrome
GroupAdd rotmg, realmofthemadgod
GroupAdd rotmg, Play Realm of the Mad God
GroupAdd rotmg, Adobe Flash Player 10
GroupAdd rotmg, Adobe Flash Player 11
WinNotActive()

WinActive()
{
	Suspend Off
	WinWaitNotActive ahk_group rotmg
	{
		WinNotActive()
	}
}
WinNotActive()
{
	Suspend on
	WinWaitActive ahk_group rotmg
	{
		WinActive()
	}
}

; Switch items in you inv!
1::
slot = 1	;;;;; CHANGE TO YOUR WEAPON SWAP INVENTORY SLOT
goto swap

2::
slot = 2	;;;;; CHANGE TO YOUR ABILITY SWAP INVENTORY SLOT
goto swap

swap:
MouseGetPos, mousePosX, mousePosY
WinGetPos, , , winSizeX, winSizeY, A
SysGet, menuHeight, 15
SysGet, vBorderWidth, 32
SysGet, hBorderWidth, 33
SysGet, titleHeight, 4
ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-low.png
if ErrorLevel {
	ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-high.png
	if ErrorLevel {
		ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-med.png
		if ErrorLevel {
			stretched := true
		}
	}
}
if(stretched){
	posX := 634 + Mod((44 * (slot-1)), (4*44))
	posY := 400 + (44 * ((slot-1)//(4)))
	multiplierX := ((winSizeX-vBorderWidth)/800)
	multiplierY := ((winSizeY-(menuHeight+hBorderWidth+titleHeight))/600)
	posX *= multiplierX
	posY *= multiplierY
} else {
	posX := imageLocX + 30 + Mod((44 * (slot-1)), (4*44)) - vBorderWidth
	posY := imageLocY + 50 + (44 * ((slot-1)//(4))) - (menuHeight+hBorderWidth+titleHeight)
}
CoordMode, Mouse, Client
MouseMove, posX, posY
SendEvent {LButton Down}
SendEvent {LButton Up}
SendEvent {LButton Down}
SendEvent {LButton Up}
CoordMode, Mouse, Window
MouseMove, mousePosX, mousePosY
stretched := false
Return
Quote Originally Posted by Maxxxel18 View Post
i play on steam is this a problem?
and how to open the script. with hotkeynet it isnt working

i try autohotkey


WORKS PERFETC THANKS!!!


one problem now... when i play fullscreen v2 it just shoots how to make it working with fulscreen v2
its one of my first scripts i only made it to support the original size or stretched. i have not made it for fs because i do not play/download fullscreen clients.they are too laggy
for me not laggy power machine so can u rewrite it for 1920x1080?

would be so awesome
up there is waht you should use
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us