I'm not a R/S so it crashes once it reaches the boss. how would I fix this, so it will would for a ward/S
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
<!--**************************************************************************************************************************************************************
******************************************************************************************************************************************************************
** DoD V5 **
** Create by Solembum05 inspired by Xm3n's work ! **
** **
** Thanks to Lisa, Kuripot & Lolita ! **
** **
******************************************************************************************************************************************************************
***************************************************************************************************************************************************************-->
<!-- Options -->
<!--##############################################################################################################################################################
## CHANGE FOLOW OPTION ##
## ##
## on line 28 reparight = false set true if you want to repair weapon or false for no repair ##
## 29 dura = XXX //100% = 100 // 50% = 50 // 10% = 10 ##
## 30 sellright = false set true if you want to sell bag contents or not if you don't sell ##
## 31 sellbag1 = false true= Sell / false = No Sell ##
## 32 sellbag2 = false true= Sell / false = No Sell ##
## 33 sellbag3 = true true= Sell / false = No Sell ##
## 34 sellbag4 = true true= Sell / false = No Sell ##
## 35 sellbag5 = true true= Sell / false = No Sell ##
## 36 sellbag6 = true true= Sell / false = No Sell ##
###############################################################################################################################################################-->
reparight = false
dura = 97
sellright = true
sellbag1 = false
sellbag2 = false
sellbag3 = true
sellbag4 = true
sellbag5 = true
sellbag6 = true
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++..==Start Functions==..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
###################
###!!!WARNING!!!###
###################
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++DONT CHANGE THE FOLLOW LINE+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!-- FUNCTION CHOICE NUMBER RUN -->
Nbrun = 0
repeat
cprintf(cli.lightgreen,"\n\n\n Welcome On DoD's farm V5 !\n\n")
print("Choose run's number: ")
print("\nExample: 1400M=350run, 840M=210run, 770M=193run...")
print("\nNbrun>")
Nbrun = io.stdin:read()
Nbrun = tonumber(Nbrun)
until Nbrun and Nbrun > 0
cprintf(cli.blue, "\n\n Have nice farm on DoD V5 !\n Create by Solembum05 inspired by Xm3n's work !\n\n\n")
if Nbrun > 750
then cprintf(cli.red,"\n\n Sorry, Maximum is 750 ! Because 750*4=3000 ! You can't have more of 3000 Mementos \n\n")
yrest(3000)
loadPaths("DoDV5.xml");
end
<!-- FUNCTION TO DEFINE ORIGIN'S WAYPOINT -->
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
<!-- FUNCTION UNBRIDLED ENTHUSIAM+LUCKY TARGET -->
function Buff()
player:update()
if not player:hasBuff("506684")
then inventory:useItem(207200);
end
if (not player:hasBuff("506687"))
then inventory:useItem(207203);
end
end
<!-- FUNCTION COUNT SELL -->
Mcount = 0
function Mcountround()
Mcount = Mcount+1;
end
<!-- FUNCTION COUNT REPAIR -->
Rcount = 0
function Rcountround()
Rcount = Rcount+Mcount+1;
end
<!-- FUNCTION COUNT DEAD -->
Dcount = 0
function Dcountround()
Dcount = Dcount+1;
end
<!-- FUNCTION COUNT BUG -->
Bcount = 0
function Bcountround()
Dcount = Bcount+1;
end
<!-- FUNCTION COUNT ANCIENT MEMENTO -->
Acount = 0
function Acountround()
Acount = Count*4;
end
<!-- FUNCTION COUNT RUN -->
Count = 0
function Countround()
Count = Count+1;
end
<!-- FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER -->
function number()
EndA = 0
EndB = 0
EndC = 0
if ( Nbrun == Count )
then
EndA = 1
EndC = 1
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
Mentos = inventory:itemTotalCount(206879)
if ( Mentos == 3000 )
then
EndB = 1
EndC = 1
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
end
<!-- FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER -->
function lastrun()
restmentos = 3000 - Mentos;
lrun= restmentos / 4;
end
<!-- FUNCTION CHECKS STRUCTURE ARMS -->
function checkdura()
if ( reparight == true and dura > inventory:getMainHandDurability() )
then
Rcountround()
cprintf(cli.lightred, "\nGoing to repair !\n\n");
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
end
<!-- FUNCTION CHECK BAG -->
function bag()
bcount = inventory:getItemCount(0)
if ( sellright == true and 4 > bcount )
then
Mcountround()
cprintf(cli.lightred, "\nGoing to sell !\n\n");
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
end
end
<!-- FUNCTION SELL PNJ -->
function sellrepair()
if ( sellright == true )
then
player:openStore(115536)
if ( sellbag1 == true )
then
RoMScript("Sellslots1()")
yrest(1000)
end
if ( sellbag2 == true )
then
RoMScript("Sellslots2()")
yrest(1000)
end
if ( sellbag3 == true )
then
RoMScript("Sellslots3()")
yrest(1000)
end
if ( sellbag4 == true )
then
RoMScript("Sellslots4()")
yrest(1000)
end
if ( sellbag5 == true )
then
RoMScript("Sellslots5()")
yrest(1000)
end
if ( sellbag6 == true )
then
RoMScript("Sellslots6()")
yrest(1000)
end
end
if ( reparight == true )
then
player:merchant(115536)
yrest(500)
end
if ( EndC == 1 )
then
if ( EndA == 1 )
then
Info()
printf("\nAll run done !\n\n");
player:sleep();
end
if ( EndB == 1 )
then
Info()
printf("\nFull Ancient Memento !\n\n");
player:sleep();
end
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
end
end
<!-- FUNCTION GROUP -->
function ireset()
SlashCommand("ILG destroy")
yrest(500)
SlashCommand("ILG inv")
end
<!-- FUNCTION INFORMATION -->
function Info()
cprintf(cli.pink, "\n\nNbr Round done: %s for %s Mementos win !\n", Count, Acount)
cprintf(cli.pink, "You have %s Mementos ! You chose %s run ! You can do again %s run ! \n",Mentos, Nbrun, lrun)
cprintf(cli.yellow, "Nbr Sell: %s and Nbr Repair: %s\n", Mcount, Rcount )
cprintf(cli.red, "Nbr Dead: %s and Nbr Bug: %s\n\n", Dcount, Bcount)
end
</onLoad>
<!-- WAYPOINT MEADOW TO ENTER+GROUP -->
<!-- # 1 --> <waypoint x="1645" z="-4908" y="752" tag="start" type="TRAVEL"> player:update() checkdura() bag() number() lastrun() yrest(500) </waypoint>
<!-- # 2 --> <waypoint x="1649" z="-4918" y="752" type="TRAVEL"> Info() ireset() teleportToWP(3) </waypoint>
<!-- # 3 --> <waypoint x="1687" z="-5142" y="772" type="TRAVEL"> waitForLoadingScreen() Buff() if player.Class1 == CLASS_ROGUE then player:cast("ROGUE_PREMEDITATION") end teleportToWP(4) </waypoint>
<!-- WAYPOINT ON DoD -->
<!-- # 4 --> <waypoint x="1874" z="2845" y="433" type="TRAVEL"> </waypoint>
<!-- # 5 --> <waypoint x="1953" z="2772" y="433" type="TRAVEL"> </waypoint>
<!-- # 6 --> <waypoint x="2061" z="2658" y="434" type="TRAVEL"> </waypoint>
<!-- # 7 --> <waypoint x="2190" z="2493" y="401" type="TRAVEL"> </waypoint>
<!-- WAYPOINT USE PREMIDITATION BEFORE BOSS -->
<!-- # 8 --> <waypoint x="2297" z="2391" y="401"> player:cast("ROGUE_PREMEDITATION") RoMScript("SetTitleRequest(530724)"); Countround() Acountround() yrest(300) </waypoint>
<!-- WAYPOINT AFTER BOSS -->
<!-- # 9 --> <waypoint x="2190" z="2493" y="401"> RoMScript("SetTitleRequest(530427)") </waypoint>
<!-- # 10 --> <waypoint x="2061" z="2658" y="434" type="TRAVEL"> </waypoint>
<!-- # 11 --> <waypoint x="1953" z="2772" y="433" type="TRAVEL"> </waypoint>
<!-- # 12 --> <waypoint x="1874" z="2845" y="433"> </waypoint>
<!-- WAYPOINT HIDE'S ROGUE -->
<!-- # 13 --> <waypoint x="1737" z="2883" y="433"> player:cast("ROGUE_HIDE") </waypoint>
<!-- WAYPOINT EXIT+LEAVE GROUP IF NOT PORTAL -->
<!-- # 14--> <waypoint x="1700" z="2886" y="433" type="TRAVEL">
keyboardPress( key.VK_SPACE );
if not waitForLoadingScreen(15)
then
ireset()
waitForLoadingScreen()
Bcountround()
__WPL:setWaypointIndex(__WPL:findWaypointTag("return"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
end </waypoint>
<!-- WAYPOINT SELL PNJ -->
<!-- # 16 --> <waypoint x="1707" z="-4755" y="752" tag="mech"> sellrepair() </waypoint>
<!-- WAYPOINT RETURN -->
<!-- # 17 --> <waypoint x="-3812" z="5117" y="30" tag="return" type="TRAVEL">
if ( not player:hasBuff("506688") )
then inventory:useItem(207204);
end
if ( not player.Mounted )
then player:mount();
end </waypoint>
<!-- # 18 --> <waypoint x="-3382" z="5466" y="23" type="TRAVEL"> </waypoint>
<!-- # 19 --> <waypoint x="-3100" z="5624" y="14" type="TRAVEL"> </waypoint>
<!-- # 20 --> <waypoint x="-2918" z="5898" y="25" type="TRAVEL"> </waypoint>
<!-- # 21 --> <waypoint x="-2627" z="6184" y="23" type="TRAVEL"> </waypoint>
<!-- # 22 --> <waypoint x="-2482" z="6432" y="28" type="TRAVEL"> </waypoint>
<!-- # 23 --> <waypoint x="-2490" z="6534" y="43" type="TRAVEL"> </waypoint>
<!-- # 24 --> <waypoint x="-2602" z="6606" y="62" type="TRAVEL"> </waypoint>
<!-- # 25 --> <waypoint x="-2836" z="6756" y="52" type="TRAVEL"> </waypoint>
<!-- # 26 --> <waypoint x="-2859" z="6949" y="52" type="TRAVEL"> </waypoint>
<!-- # 27 --> <waypoint x="-2904" z="7219" y="-84" type="TRAVEL"> </waypoint>
<!-- # 28 --> <waypoint x="-2977" z="7237" y="-88" type="TRAVEL"> waitForLoadingScreen() </waypoint>
<!-- # 29 --> <waypoint x="51" z="-890" y="869" type="TRAVEL">
player:target_NPC(115572)
sendMacro("ChoiceOption(1);")
waitForLoadingScreen()
__WPL:setWaypointIndex(__WPL:findWaypointTag("mech")) </waypoint>
</waypoints>