Vous êtes sur la page 1sur 7

//----------------------------------------------------//---------------- COORDINATETABLES ------------------//----------------------------------------------------//---------------- (PUT THE CORRECT ONES FOR YOUR TOWN INTO MAIN LOOP

//---------------- POSOUTRANGE AND POSINRANGE FUNCTION CALLS):


//
//---------------- TOWN CENTER:
//---------------OREN: 82131,55132,-1520,3000
//---------------SHUTTGART: 87345,-141092,-1336,3000
//---------------DION: 18915,144688,-3104,3750
//---------------GODDARD: 147774,-57663,-2896,4000
//---------------GIRAN: 81608,148594,-3464,3250
//-----------------------------------------------------

//-----------------------------------------------------------------------------//---------------- MAIN LOOP STARTS -------------------------------------------//-----------------------------------------------------------------------------LABEL(FOREVER)


//---------------- JUST A CHECK FOR GOING BACK TO TOWN;
//---------------- REDUNDANT IF DEAD RETURN IS SET
CharStatus(HP,==,0)
{
MSG(Character Dead! Going back to town!)
GOHOME()
}
//---------------- IF NOT IN TOWN, CHECK FOR NEWBIE BUFFS
//---------------- (BLESS THE BODY). IF NOT FOUND; RETURN
//-------------------------------------------------------------------------------------------------------------------(1) CONFIG
POSOUTRANGE(82131,55132,-1520,3000)
{
CALL(BUFFCHECK)
}
//---------------- IF IN TOWN, GO BACK TO SPOT
//-------------------------------------------------------------------------------------------------------------------(1) CONFIG
POSINRANGE(82131,55132,-1520,3000)
{
CALL(RUNTOADV)
CALL(POTCHECK)
CALL(SSCHECK)
CALL(RUNTOGK)
CALL(RUNTOSPOT)
}
JMP(FOREVER)
//-----------------------------------------------------------------------------//---------------- MAIN LOOP ENDS ---------------------------------------------//------------------------------------------------------------------------------

//-----------------------------------------------------------------------------//---------------- SUBROUTINES FOLLOWS ----------------------------------------//-----------------------------------------------------------------------------//----------------------------------------------------//---------------- RUNS TO ADVENTURERS GUIDE ---------//---------------- UNCOMMENT THE CORRECT CITY --------//---------------- THAT YOU WANT TO USE. -------------//----------------------------------------------------//-------------------------------------------------------------------------------------------------------------------(2) CONFIG
LABEL(RUNTOADV)
{
CALL(ADVOREN)
//CALL(ADVGODDARD)
//CALL(ADVSHUTTGART)
//CALL(ADVDION)
//CALL(ADVGIRAN)
RETURN()
}
//----------------------------------------------------//---------------- RUNS TO GROCERY STORE -------------//---------------- UNCOMMENT THE CORRECT CITY --------//---------------- THAT YOU WANT TO USE. -------------//----------------------------------------------------//-------------------------------------------------------------------------------------------------------------------(2) CONFIG
LABEL(BUYPOT)
{
CALL(POTOREN)
//CALL(POTGODDARD)
//CALL(POTSHUTTGART)
//CALL(POTDION)
//CALL(POTGIRAN)
RETURN()
}
//----------------------------------------------------//---------------- RUNS TO WAREHOUSE KEEPER ----------//---------------- UNCOMMENT THE CORRECT CITY --------//---------------- THAT YOU WANT TO USE. -------------//----------------------------------------------------//-------------------------------------------------------------------------------------------------------------------(2) CONFIG
LABEL(RESTOCKSS)
{
CALL(SSOREN)
//CALL(SSGODDARD)
//CALL(SSSHUTTGART)
//CALL(SSDION)
//CALL(SSGIRAN)
RETURN()
}
//----------------------------------------------------//---------------- RUNS TO GATEKEEPER -----------------

//---------------- UNCOMMENT THE CORRECT CITY --------//---------------- THAT YOU WANT TO USE. -------------//----------------------------------------------------//-------------------------------------------------------------------------------------------------------------------(2) CONFIG
LABEL(RUNTOGK)
{
CALL(GKOREN)
//CALL(GKGODDARD)
//CALL(GKSHUTTGART)
//CALL(GKDION)
//CALL(GKGIRAN)
RETURN()
}
//----------------------------------------------------//---------------- RUNS TO HUNTING SPOT --------------//---------------- UNCOMMENT THE CORRECT SPOT --------//---------------- THAT YOU WANT TO USE. -------------//---------------- MAKE SURE TOWN IS CORRECT ---------//----------------------------------------------------//-------------------------------------------------------------------------------------------------------------------(2) CONFIG
LABEL(RUNTOSPOT)
{
CALL(ORENSPOT1) //IVORY TOWER (FORMOR, FORMOR ELDER, TARLK BUGBEAR)
//CALL(SHUTTGARTSPOT1) //IVORY TOWER
//CALL(SHUTTGARTSPOT2)
//CALL(DIONSPOT1)
//CALL(GIRANSPOT1)
RETURN()
}
//----------------------------------------------------//---------------- CHECKS IF MAX HP OR MP IS LOW.
//---------------//---------------- FIGHTER:
//------------------------//---------------- THE FIST CHARSTATUS CALL SHOULD INCLUDE YOUR MAXHP(WITH BTB6)
*0.94
//---------------- THAT IS 94% OF MAX HP WITH NEWBIE BUFFS. THIS NEEDS TO BE UPD
ATED EVERY FEW LEVELS (NOT EVERY LEVEL)
//---------------- OR THE SCRIPT WONT DETECT WHEN NEWBIE BUFFS WEARS OFF.
//---------------- IF USING THIS COMMENT OUT THE MAGE PART.
//---------------- PLEASE NOTE THAT HEALTH NEEDS TO BE AROUND THIS VALUE (94%) F
OR THE SCRIPT TO DETECT BUFF ABSENCE.
//------------------------//-------------------------------------------------------------------------------------------------------------------(3a) CONFIG
LABEL(BUFFCHECK)
{
//-------------------------------------------------------------------------------------------------------------------(3a) CONFIG
CharStatus(CHP,<=,1875)
{
CharStatus(HP,>=,98)
{
//-------------------------------------------------------------------------------------------------------------------(3a) CONFIG

CharStatus(CHP,<=,1875)
{
CALL(TOTOWN)
}
}
}
RETURN()
}
//----------------------------------------------------//---------------- CHECKS IF MAX HP OR MP IS LOW.
//---------------//---------------- MAGE:
//------------------------//---------------- THE FIST CHARSTATUS CALL SHOULD INCLUDE YOUR MAXMANA(WITH BTS
6)*0.60
//---------------- THAT IS 60% OF MAX HP WITH NEWBIE BUFFS. THIS NEEDS TO BE UPD
ATED EVERY FEW LEVELS (NOT EVERY LEVEL)
//---------------- OR THE SCRIPT WONT DETECT WHEN NEWBIE BUFFS WEARS OFF.
//---------------- IF USING THIS COMMENT OUT THE FIGHTER PART.
//---------------- PLEASE NOTE THAT MANA NEEDS TO BE AROUND THIS VALUE (60%) FOR
THE SCRIPT TO DETECT BUFF ABSENCE.
//------------------------//-------------------------------------------------------------------------------------------------------------------(3b) CONFIG
//LABEL(BUFFCHECK)
{
//-------------------------------------------------------------------------------------------------------------------(3b) CONFIG
CharStatus(CMP,<=,666)
{
CharStatus(MP,>=,63)
{
//-------------------------------------------------------------------------------------------------------------------(3b) CONFIG
CharStatus(CMP,<=,666)
{
CALL(TOTOWN)
}
}
}
RETURN()
}
//----------------------------------------------------//---------------- CHECKS CURRENT SOULSHOT AMOUNT AND CHARACTER WEIGHT
//---------------- THE AMOUNT OF MINIMUM SOULSHOTS,
//---------------- SOULSHOT TYPE AND WEIGHT PERCENTAGE CAN BE
//---------------- MODIFIED TO BETTER SUIT YOUR NEEDS.
//----------------------------------------------------LABEL(SSCHECK)
{
//-------------------------------------------------------------------------------------------------------------------(4a) CONFIG
//ITEMCOUNT(Soulshot: No Grade[ID=1835],<=,4000)
//ITEMCOUNT(Soulshot: D-grade[ID=1463],<=,4000)
ITEMCOUNT(Soulshot: C-grade[ID=1464],<=,4000)
//ITEMCOUNT(Soulshot: B-grade[ID=1465],<=,2000)
//ITEMCOUNT(Soulshot: A-grade[ID=1466],<=,2000)
//ITEMCOUNT(Soulshot: S-grade[ID=1467],<=,2000)

//---------------------------------------------------------------//ITEMCOUNT(Blessed Spiritshot: No Grade[ID=3947],<=,2000


//ITEMCOUNT(Blessed Spiritshot: D-Grade[ID=3948],<=,2000)
//ITEMCOUNT(Blessed Spiritshot: C-Grade[ID=3949],<=,2000)
//ITEMCOUNT(Blessed Spiritshot: B-Grade[ID=3950],<=,1000)
//ITEMCOUNT(Blessed Spiritshot: A-Grade[ID=3951],<=,1000)
//ITEMCOUNT(Blessed Spiritshot: S Grade[ID=3952],<=,1000)
{
CHARSTATUS(WEIGHT,<,46)
{
MSG(Attempting to restock soulshots)
CALL(RESTOCKSS)
}
}
RETURN()
}
//----------------------------------------------------//---------------- AGAIN THE TYPE OF SS TO USE.
//---------------- LAST VALUE IS NUMBER OF SHOTS
//---------------- TO WITHDRAW BETWEEN EACH WEIGHT CHECK.
//---------------- IF RESTOCKING SEEMS TOO SLOW THIS VALUE
//---------------- CAN BE INCREASED, BEWARE;
//---------------- TOO HIGH CAN CAUSE OVERWEIGHT.
//----------------------------------------------------LABEL(GETSHOTS)
{
//-------------------------------------------------------------------------------------------------------------------(4a) CONFIG
//LOADITEM(Soulshot: No Grade[ID=1835],300;)
//LOADITEM(Soulshot: D-grade[ID=1463],300;)
LOADITEM(Soulshot: C-grade[ID=1464],300;)
//LOADITEM(Soulshot: B-grade[ID=1465],300;)
//LOADITEM(Soulshot: A-grade[ID=1466],300;)
//LOADITEM(Soulshot: S-grade[ID=1467],300;)
//---------------------------------------------------------------//LOADITEM(Blessed Spiritshot: No Grade[ID=3947],300;)
//LOADITEM(Blessed Spiritshot: D-Grade[ID=3948],300;)
//LOADITEM(Blessed Spiritshot: C-Grade[ID=3949],300;)
//LOADITEM(Blessed Spiritshot: B-Grade[ID=3950],300;)
//LOADITEM(Blessed Spiritshot: A-Grade[ID=3951],300;)
//LOADITEM(Blessed Spiritshot: S Grade[ID=3952],300;)
RETURN()
}
//----------------------------------------------------//---------------- CHECKS IF POTS OR SOE IS LOW
//---------------- VALUES CAN BE MODIFIED TO SUIT YOUR NEEDS, OR ADD ANOTHER ITE
M;
//---------------- BUT IF YOU DO REMEMBER TO EDIT BUYPOT ROUTINE AS WELL
//----------------------------------------------------LABEL(POTCHECK)
{
//-------------------------------------------------------------------------------------------------------------------(*5) OPTIONAL CONFIG
ITEMCOUNT(Healing Potion[ID=1061],<=,50)
{
MSG(Low on healing pots, lets go buy some!)
CALL(BUYPOT)

}
//-------------------------------------------------------------------------------------------------------------------(*5) OPTIONAL CONFIG
ITEMCOUNT(Scroll of Escape[ID=736],<=,3)
{
MSG(Low on scroll of escape, lets go buy some!)
CALL(BUYPOT)
}
RETURN()
}
//----------------------------------------------------//---------------- Amount of healing pots to restock at one time
//----------------------------------------------------LABEL(DOBUYPOT)
{
//-------------------------------------------------------------------------------------------------------------------(*6) OPTIONAL CONFIG
BUYITEM(Healing Potion[ID=1061],150;)
RETURN()
}
//----------------------------------------------------//---------------- Amount of soulshots to restock at one time
//----------------------------------------------------LABEL(DOBUYSOE)
{
//-------------------------------------------------------------------------------------------------------------------(*6) OPTIONAL CONFIG
BUYITEM(Scroll of Escape[ID=736],7;)
RETURN()
}
//----------------------------------------------------//---------------- ATTEMPTS TO RETURN TO TOWN
//---------------- THE FIRST DELAY SHOULD BE SET TO A
//---------------- GOOD TIME TO FINISH ALL AGGRO BEFORE USING SOE.
//---------------- SECOND DELAY IS JUST TO GIVE TIME FOR SOE + TOWN LOAD,
//---------------- IF YOU HAVE A SLOW COMPUTER A HIGHER VALUE MAY BE GOOD.
//----------------------------------------------------LABEL(TOTOWN)
{
MSG(Appear newbie buffs is gone, attempting to go home)
SET(FIGHTSTOP)
//-------------------------------------------------------------------------------------------------------------------(*7) OPTIONAL CONFIG
DELAY(25000)
USEITEM(Scroll of Escape[ID=736])
SET(FIGHTSTART)
//-------------------------------------------------------------------------------------------------------------------(*7) OPTIONAL CONFIG
DELAY(20000)
RETURN()
}

//-----------------------------------------------------------------------------//---------------- PATHFINDING SECTION -----------------------------------------

//-----------------------------------------------------------------------------//----------------------------------------------------//---------------- RUNS TO ADVENTURERS GUIDE


//----------------------------------------------------//----------------------------------------------------//---------------- OREN CASTLE TOWN ------------------//----------------------------------------------------LABEL(ADVOREN)
{
SET(FIGHTSTOP)
SET(L2WALKER,DISABLE)
MOVETO(82332,54175,-1522)
MOVETO(82310,55342,-1551)
MOVETO(81562,55605,-1551)
MOVETO(80648,55869,-1586)
MOVETO(80461,55638,-1586)
MOVETO(80437,54430,-1586)
MOVETO(80545,53997,-1586)
MOVETO(81014,53594,-1586)
MOVETO(81774,53512,-1522)
MOVETO(82240,53524,-1522)
MOVETO(82363,53336,