YoHoJo
2006-05-29 23:26:52
Well this is a small bit of code that will remove the
Equiped=
const in scripts.
[PHP]Procedure DTMs;
var Axe,Pic:Integer;
begin
Axe:= DTMFromString('78DA637461626078C600065C108AA134809DE' +
'13F906604E2FF40C0E80E54731D550D44164602693FA09A1B986A' +
'1891D5D803D57CC46F0E0030240AA2');
Pic:= DTMFromString('78DA63F4646060886340038C482490B605129' +
'504D40402890C026A1C80440A7E3500F08A02C7');
end;
Function PicHacLoc:Boolean;
begin
Gametab(4)
If FindDTM(Axe,x,y,546, 195, 748, 467)or
If FindDTM(Pic,x,y,546, 195, 748, 467)then
Result:=True
end;[/PHP]
What this does is look for a dtm of an axe or a pic in your inventory. If found results true. Meaning its NOT equiped.
Idk… Hope it Helps.:rolleyes:
WhiteShadow
2006-05-29 23:44:30
Or people can do a simple edit with their fingers. ;)
Anyways yea, this is creative and more user friendly for the challenged.
YoHoJo
2006-05-30 00:15:25
I know its simpel but less conts= less noobs =)
Nice work yohojo. Better yet open up equipped tab and look for it there. And if it doesnt find it return a number. Like 0 for nowhere 1 for inv and 2 for equip.
Starblaster100
2006-05-30 07:04:10
If implimented my own version of this whilst color finding into SRL.
It uses the Variable
[php]
var EquipAxe : Boolean
[/php]
Now the axe can be equip or unequip.
WhiteShadow
2006-05-30 19:31:51
This would also work, + be understandable for people not to familiar with SCAR.
const
Wield = True;//Wield = True; In inventory = False
//Mainloop
begin
EquipAxe:= Wield;//I think it was called equipaxe… ;P
end.
YoHoJo
2006-05-30 20:54:20
its not made to euip the axe of anything.
What if ur lv 3 and have a rune axe?
Its just made to recognize wheather the axe is equiped or not.
The scripter can choose why that info would be needed for latter procedures in the script
WhiteShadow
2006-05-30 21:13:53
Sorry, Yoho I don't quite get you.
Dankness
2006-05-30 21:47:24
From: yohojo8
its not made to euip the axe of anything.
What if ur lv 3 and have a rune axe?
Its just made to recognize wheather the axe is equiped or not.
The scripter can choose why that info would be needed for latter procedures in the script
I hate seeing lvl 3's with rune axes which is why personally i perfer to make it a user settable variable, if you cant weild the axe you shouldnt carry it.
YoHoJo
2006-05-30 22:07:49
But you DO see it meaning this procedure IS usefull to SOME people:p
godsforsaken
2006-06-03 00:17:28
umm, couldn't you just open the inventory, and get color at the location of where the pick/axe head is, and if it does not match the inventory background, then it is in the inventory. Or you could just open up your equipted items and place the mouse over the weapon spot and look for text at the top to see if one is being wielded. (just a thought)
YoHoJo
2006-06-03 05:58:09
Every pick head is a diff color.
This just looks for ANY pic or ANy axe