What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

-How to write endless instance framing profiles-

playmelol

New Member
Joined
Jan 2, 2014
Messages
21
Reaction score
0
Community,

Hope this thread post finds everyone well. I have been toying around with the idea of creating endless MOP dunging farming profiles (Normal mogu'shan palace nets me around 300-400g a run that takes me about 12 minutes to clear) I have ripped apart other endless profiles and have gotten close but get stuck on a few lines of code. Once I perfect the profile I will be sharing it with the community.

I want to say on a scale of 1 -10 my knowledge of coding is about a 5. I have been scouring the internet and forms (I know about the wiki page) and seen a few helpful videos, but nothing friendly enough to help me in my quest.

Should I be using a program vs using notepad?

I understand lines (I.E line 1 and line 48) but I don't understand when I get an error saying something on line 3 and line 45 does not match up.

Conditions I understand <if> <when> <else> but what I don't understand are the spaces/indention between them. I.E

<if>
<if>
<if>
When I read other peoples profiles why does spacing out like that accrue?

I understand this might be a lot, but I would really like to give back to the community after using everyone profiles since the glider days.

Any help would be very much appreciated.

Thank you for your time.
 
if there is code in your post, you may want to wrap it in php tags. otherwise we cant see it
 
Spacing for conditions/operations is common in many programming languages. It makes the code easier to read.

In your case if you have nested IFs then it is much easier to read if each inner IF is indented a few spaces more than the previous IF.

I'm a novice at profile coding but an example of 3 nested IFs would be as follows:

<IF your code >
....<IF your code>
........<IF your code>
........</IF>
....</IF>
</IF>
 
Trying learning some coding this days...

The tags <if> <else> <when> <etc> used on almost XML profiles is C#?
This days i can edit some profiles and turn it more personal but when i want write some things cant complete some tasks =/

A i.e:
<?xml version="1.0" encoding="utf-8"?>
<PBProfile>
<CastSpell RepeatType="Craftable" Repeat="1" Entry="75249" CastOnItem="False" ItemType="Chest" ItemId="0" waittimer="3000" />
<Wait Condition="false" Timeout="2000" />
<CallSubRoutine SubRoutineName="DE" />
<SubRoutine SubRoutineName="DE">
<Disenchant ActionType="Disenchant" ItemTarget="All" ItemQuality="Uncommon" ItemId="0" />
<While PulseSecondaryBot="True" Condition="InbagCount (52718) &gt;= 3" IgnoreCanRun="True">
<Custom Code="Lua.DoString(&quot;UseItemByName(52718)&quot; );" />
</While>
</SubRoutine>
</PBProfile>

In this example He still creating even bag is full, if i change to craft like only 80 ok after it he just DE like i want but... When crafting he keep trying crafting on channeling and the game say "Another action in progress" cuz he is keeping casting over time.
Tryed the waiting time but dont work.
Any help?

Sorry about my bad english and i dont want steal your post but i think this can be usefull for both ;)
 
Back
Top