Search found 29 matches

by kellewic
Thu Jul 20, 2006 9:24 pm
Forum: ISXEQ::Help
Topic: Probably asked before -- Please read
Replies: 9
Views: 13937

This is great help -- but one thing I really lack -- and maybe its because I havent seen that many scripts here ... is a great example of how to code the scripts in ISS compared to MQ2. Does anyone have a good example that I could look at and learn from -- Im not programming stupid -- just not ISS ...
by kellewic
Tue Jul 04, 2006 4:50 pm
Forum: ISXEQ::Help
Topic: Returning from a function
Replies: 0
Views: 2305

Returning from a function

I just cannot figure this out. I can return simple variables no problem from functions. Returning things like objects, arrays, collections, etc still eludes me I've tried: function:array xxx() { variable string ret[2] ret[1]:Set[a] ret[2]:Set[b] return ${ret} } I've also tried replacing 'function:ar...
by kellewic
Tue Jul 04, 2006 3:41 pm
Forum: ISXEQ::Help
Topic: item pickup and move script-not working right
Replies: 85
Views: 27539

This PickItUp:Set[${FindItem[=Summoned: Black Bread]}] is setting a string into an int which will give you 0. FindItem returns an object of type 'item', which when echo'd gives the item name. you probably want: PickItUp:Set[${FindItem[=Summoned: Black Bread].InvSlot}] which gives you the slot the it...
by kellewic
Thu Jun 29, 2006 2:11 pm
Forum: ISXEQ::Scripts::Script Depot
Topic: Fishing
Replies: 55
Views: 20035

Fishing cont

Packs.inc function:bool ClearCursor() { variable byte x = 5 ; Remove items off cursor. Accounts for 5 items while (${Cursor.ID} != 0 && ${x} > 0) { EQExecute /autoinventory x:Dec } if (!${Cursor.ID}) { return TRUE } return FALSE } objectdef ItemSlot { variable int slot variable int minSlot v...
by kellewic
Thu Jun 29, 2006 2:10 pm
Forum: ISXEQ::Scripts::Script Depot
Topic: Fishing
Replies: 55
Views: 20035

Fishing

Fishing script with XML config fishing.iss #include Packs.inc #macro ProcessQueue() while ${QueuedCommands} ExecuteQueued #endmac variable string xmlSettingsFile = ${LavishScript.HomeDirectory}/Scripts/fishing/fishing.xml variable collection:int items variable collection:int maxItemsToKeep variable ...
by kellewic
Sat Jun 03, 2006 6:15 pm
Forum: ISXEQ::Help
Topic: Returning an object from a member
Replies: 6
Views: 3850

You setup a member 'Pack' but are trying to test it by calling .Packs[] ? ie: echo ${inventroy.Packs[2]} won't be calling the member Pack, so your echo X line won't get called... I'm sure it's not entirely that simple, but it does look like part of the problem, from here... Yeah, I am retarded on t...
by kellewic
Sat Jun 03, 2006 4:22 pm
Forum: ISXEQ::Help
Topic: Returning an object from a member
Replies: 6
Views: 3850

What you're wanting to do is pass the value by reference, not create a new object. To pass by reference, use the "variable" type, which can be initialized with the name of any currently in-scope variable. The variable can go out of scope, e.g. calling another function with a reference to ...
by kellewic
Fri Jun 02, 2006 10:42 pm
Forum: ISXEQ::Help
Topic: Returning an object from a member
Replies: 6
Views: 3850

It might be better to give me a code sample of what you're trying to do Ok, here is the code I am using: Packs.inc objectdef InvPack { variable byte slot method Open() { if (!${Window[pack${This.slot}].Open} && ${This.IsSlotValid}) { nomodkey EQitemnotify pack${This.slot} rightmouseup } } m...
by kellewic
Fri Jun 02, 2006 8:00 pm
Forum: ISXEQ::Bug Reports
Topic: Guess it's a bug
Replies: 58
Views: 23291

Nope, because you're creating a new key that has a } at the end of it... e.g. poles:Set[Apple}, 1] } is perfectly valid to use That's the thing though... the '}' doesn't appear in the output when I iterate back over the collection. It's like it is ignored. I will re-verify this tonight though and p...
by kellewic
Fri Jun 02, 2006 1:30 am
Forum: ISXEQ::Help
Topic: Returning an object from a member
Replies: 6
Views: 3850

Returning an object from a member

Ok, I have an objectdef member that returns another objectdef... problem is all the variables inside the returned objectdef get cleared upon returning it. I can reset them fine in client code and they operate normally, but if all the object member variables are cleared, they lose their state. Actual...
by kellewic
Fri Jun 02, 2006 12:51 am
Forum: ISXEQ::Bug Reports
Topic: Guess it's a bug
Replies: 58
Views: 23291

Guess it's a bug

The following code actually works: x:Set[0] while (${x:Inc} <= ${${poleSet}.Keys}) { poles:Set[${${poleSet}.Key[${x}}]}, ${x}] } Here are the variable defs: variable collection:int poles variable string poleSet = SettingXML[${xmlSettingsFile}].Set["Fishing Poles"] variable byte x = 0 The r...
by kellewic
Wed May 24, 2006 8:18 pm
Forum: ISXEQ::Scripts::Help
Topic: Porting MQ2 to ISXEQ problems
Replies: 40
Views: 29885

Reason I ask, is because the following will still crash InnerSpace every time Does the Lavish crash reporter come up? If you submit a crash report I can fix whatever problem it is much quicker ;) I presume you havent done so, but I just did it myself for a good crash anyway, so I'll get it fixed. Y...
by kellewic
Wed May 24, 2006 7:03 pm
Forum: ISXEQ::Scripts::Help
Topic: Porting MQ2 to ISXEQ problems
Replies: 40
Views: 29885

You cannot declare an array variable like variable array packs[8] but it should also not crash, so I'll look nito that. It should instead be: variable InvPack packs[8] The crash issue in the Initialize method is part of a larger issue -- the script moves out of context because it's trying to abort ...
by kellewic
Mon May 22, 2006 1:10 am
Forum: ISXEQ::Scripts::Help
Topic: Porting MQ2 to ISXEQ problems
Replies: 40
Views: 29885

Thanks Lax. One thing I also noticed was that is I have a script with a main function main() { ConsoleClear variable MyObject obj } That the Initialize of MyObject was happening before ConsoleClear. Not sure if this is also part of the issues you speak of, so figured I'd let you know of that behavior.
by kellewic
Sun May 21, 2006 8:08 pm
Forum: ISXEQ::Scripts::Help
Topic: Porting MQ2 to ISXEQ problems
Replies: 40
Views: 29885

I did notice the ISXEQ runs much faster than the MQ2 version Pretty sweet huh :) Yes it is :) The capability to run multiple scripts... I am having some crashing issues (you will see several crash reports from me :)) Some weird things... I have an objectdef with Initialize: objectdef Inventory { ;T...