View Full Version : Spell selecting using Reflection?
zeeky111
02-07-2011, 11:12 PM
Hey all, I'm back to bother you with yet another question. :P.
So, if I want to select the high-alch spell, should I use a DTM, or does Reflection have yet another handy little procedure for that, too?
And yeah, I looked through some the core files for Reflection, but I didn't find a specific procedure that selects a spell.
Thanks (again)!
i luffs yeww
02-07-2011, 11:22 PM
Reflection doesn't have a procedure for that. Don't make a DTM. You can use Cast(), though.
Frement
02-07-2011, 11:24 PM
I would recommend making a DTM, SRL's Cast() hovers to the bottom part of the magic tab for some reason, every time you start to cast a spell, so making a DTM and creating a custom procedure for that would be my choice.
i luffs yeww
02-07-2011, 11:27 PM
I'd still not use a DTM, but whatever.
Cast() hasn't worked for a number of reasons for ages but I keep bringing it up and people say it works so I don't even what's up with it.
zeeky111
02-07-2011, 11:27 PM
I'll go ahead and make the DTM, to be safe.
EDIT: Thanks, though. (:
Capricorn
02-07-2011, 11:38 PM
I just use mousebox.
Works like a charm and all you have to do is order the spell list.
zeeky111
02-07-2011, 11:49 PM
I just use mousebox.
Works like a charm and all you have to do is order the spell list.
What do you mean?
EDIT: Okay, so I see what you mean. But personally, I prefer color clicking over point clicking.
I'll use it as a failsafe, thanks for the tip. :).
smurg
02-08-2011, 10:12 PM
I just use mousebox.
Works like a charm and all you have to do is order the spell list.
I'm pretty sure people have commented that it's different for F2P and P2P so you'd have to do different coords for each for each sort.
DTMs are hawt.
zeeky111
02-08-2011, 10:15 PM
Yeah, but the DTM is freaking weird.. I mean, picture the High-Alch spell button..
It's not a rectangle or a cross.. x].
I'm using a cross DTM.
Also, with the DTM, it's odd because sometimes it finds it, and others it has to resort to my bitmap failsafe.. What's with that?
Zyt3x
02-08-2011, 10:17 PM
You can make dtms any shape you want :)
Capricorn
02-08-2011, 10:36 PM
I'm pretty sure people have commented that it's different for F2P and P2P so you'd have to do different coords for each for each sort.
DTMs are hawt.
I didn't plan on releasing my script, and it was P2P only anyway so that's pretty moot :).
I just felt that it was worth mentioning - sometimes you don't need these crazy over the top functions to do some simple stuff.
zeeky111
02-09-2011, 08:33 PM
So, Cast() isn't on the SRL function list. I'm assuming that it stopped working and someone removed it?
I was just curious to use it, to see if it would do anything.
EDIT: Also, I'm looking at -
function ExistsItem(I: integer): Boolean
What does the integer parameter refer to in this case?
Cast() is in srl/skill/magic.scar
zeeky111
02-09-2011, 10:27 PM
Cast() is in srl/skill/magic.scar
Ah. x].
Thanks.
What spell were you wanting to click?
zeeky111
02-10-2011, 12:05 AM
Either high-alch or low-alch, based on what the global boolean constant HighAlch is set to.
Becks
02-10-2011, 12:18 AM
I just use mousebox.
Works like a charm and all you have to do is order the spell list.
yeah mouse box since cast() isn't working.
KingKong
02-10-2011, 12:45 AM
EDIT: Also, I'm looking at -
function ExistsItem(I: integer): Boolean
What does the integer parameter refer to in this case?
ExistsItem checks if you have an item in that inventory spot.
zeeky111
02-10-2011, 02:00 AM
So then, I assume that (I: integer) represents the slot at which the item should be. No?
Also, does it go such that the slots are:
1 2 3 4
5 6 7 8 (etc)
or:
1 8
2 9
3 10
4 11
5 12
6 13
7 14 ?
KingKong
02-10-2011, 02:26 AM
So then, I assume that (I: integer) represents the slot at which the item should be. No?
Not sure what you mean by that, but existsitem checks if you have an item in that inventory spot. If that slot is empty i think it returns false.
Inventory is numbered like :
1 2 3 4
5 6 7 8
zeeky111
02-12-2011, 12:32 AM
Not sure what you mean by that, but existsitem checks if you have an item in that inventory spot. If that slot is empty i think it returns false.
Thanks. :]. That's what I meant, I guess that I made it a bit hard to understand. x]. My bad.
Inventory is numbered like :
1 2 3 4
5 6 7 8
Sweet, then I don't have to change anything. x]. Thanks.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.