Re: AMBOLIA´s Graffu Farm first,two,three boss
Posted: Wed Feb 05, 2014 2:22 pm
thank you very much
Code: Select all
if you get one that goes to tag BOS1
Code: Select all
print("Here are the options:")
print(" 1. One")
print(" 2. Two")
print(" 3. Three")
printf("Enter a number > ")
local selected = io.stdin:read()
if selected == 1 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("One"))
elseif selected == 2 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Two"))
elseif selected == 3 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("Three"))
end
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
<!-- ***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
*********************************** AMBOLIA SCRPT GRAFFU´S FARM BETA V1
***********************************
*********************************** 05/02/2014
***********************************
***********************************
***********************************
***********************************
***********************************
************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** -->
<!--************************************************************************************************************ FUNCTION SETWINDOW ************************************************************************************************************ -->
setwindow ("mem")
<!-- *********************************************************************************************************** FUNCTION CHOICE NUMBER RUN ************************************************************************************************* -->
Nbrun = 0
repeat
cprintf(cli.lightgreen,"\n\n\n Welcome On Graffu's farm !\n\n")
print("Choose run's number: ")
print("\nNbrun>")
Nbrun = io.stdin:read()
Nbrun = tonumber(Nbrun)
until Nbrun and Nbrun > 0
cprintf(cli.blue, "\n\n Have nice farm on Graffu V1.0 !\n Create by AMBOLIA !\n\n\n")
if Nbrun > 157
then cprintf(cli.red,"\n\n Sorry, Maximum is 157 ! Because 157*19=2983 ! You can't have more of 2983 Mementos \n\n")
yrest(3000)
loadPaths(__WPL.FileName);
end
SlashCommand("aid easy")
<!-- *********************************************************************************************************** FUNCTION WARDEN_SUMMON_CHIRON_THE_CENTAUR ********************************************************************* -->
function Summon()
player:cast("WARDEN_SUMMON_CHIRON_THE_CENTAUR")
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 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*19;
end
<!-- ********************************************************************************************************** FUNCTION COUNT RUN ******************************************************************************************************************* -->
Count = 0
function Countround()
Count = Count+1;
end
<!-- ********************************************************************************************************** FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER ************************************************************************* -->
function number()
End = 0
if ( Nbrun == Count )
then printf("\n\n All run done !\n\n");
End = 1
SlashCommand("ILG destroy")
waitForLoadingScreen()
__WPL:setWaypointIndex(__WPL:findWaypointTag("return"))
end
Mentos = getCurrency("mento")
if ( Mentos == 2983 )
then printf("\n\n Full Ancient Memento !\n\n");
End = 1
SlashCommand("ILG destroy")
waitForLoadingScreen()
__WPL:setWaypointIndex(__WPL:findWaypointTag("return"))
end
end
<!-- *********************************************************************************************************** FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER **************************************************************************** -->
function lastrun()
restmentos = 2983 - Mentos;
lrun= restmentos / 19 ;
end
<!-- *********************************************************************************************************** FUNCTION CHECK BAG *********************************************************************************************************************** -->
function bag()
Rightbag = 0
if ( Rightbag == 0 )
then
local bcount = inventory:getItemCount(0)
if( 5 > bcount )
then
SlashCommand("ILG destroy")
waitForLoadingScreen()
SlashCommand("ILG inv")
__WPL:setWaypointIndex(__WPL:findWaypointTag("return"))
end
end
end
<!-- *********************************************************************************************************** FUNCTION GROUP ******************************************************************************************************************************* -->
function ireset()
SlashCommand("ILG destroy")
yrest(500)
SlashCommand("ILG inv")
end
<!-- ********************************************************************************************************** FUNCTION TELEPORT PNJ ********************************************************************************************************************** -->
function tp()
teleportToWP()
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 \n", Mcount)
cprintf(cli.red, "Nbr Dead: %s and Nbr Bug: %s\n\n", Dcount, Bcount)
end
</onLoad>
<!-- *********************************************************************************************************** WAYPOINT ENTRAR EN GRUPO Y ENTRAR EN GRAFFU ******************************************************** -->
<!-- # 1 --> <waypoint x="-8472" z="45468" y="758" tag="start" type="TRAVEL"> changeProfileOption("LOOT",false); ireset() </waypoint>
<Onload>
Nbrun = 0
repeat
cprintf(cli.lightgreen,"\n\n\n Welcome On Graffu's farm !\n\n")
print("Choose run's number: ")
print("\nNbrun>")
Nbrun = io.stdin:read()
Nbrun = tonumber(Nbrun)
until Nbrun and Nbrun > 0
cprintf(cli.blue, "\n\n Have nice farm on Graffu V1.0 !\n Create by AMBOLIA !\n\n\n")
if Nbrun > 157
then cprintf(cli.red,"\n\n Sorry, Maximum is 157 ! Because 157*19=2983 ! You can't have more of 2983 Mementos \n\n")
yrest(3000)
loadPaths(__WPL.FileName);
end
SlashCommand("aid easy")
</Onload>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onLoad>
<!--**********************************************************************************************************************************************************************************************************************-->
<!--*********************************** AMBOLIA SCRPT GRAFFU´S FARM ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** Version Stable V1 ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** 15/02/2014 ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** Support: http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=5560 ***********************************-->
<!--*********************************** ***********************************-->
<!--**********************************************************************************************************************************************************************************************************************-->
print("Here are the options:")
print(" 1. One Boss")
print(" 2. Two Boss")
print(" 3. Three Boss")
printf("Enter a number > ")
local selected = io.stdin:read()
if selected == 1 then
loadPaths("Boss1.xml");
elseif selected == 2 then
loadPaths("Boss2.xml");
elseif selected == 3 then
loadPaths("Boss3.xml");
end
</onLoad>
<waypoints>
Code: Select all
local selected = io.stdin:read()
if selected == "1" then
loadPaths("Boss1.xml");
elseif selected == "2" then
loadPaths("Boss2.xml");
elseif selected == "3" then
loadPaths("Boss3.xml");
end
Code: Select all
<waypoints>
<onLoad>
<!--**********************************************************************************************************************************************************************************************************************-->
<!--*********************************** AMBOLIA SCRIPT GRAFFU FARM ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** Version Stable V1 ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** 15/02/2014 ***********************************-->
<!--*********************************** ***********************************-->
<!--*********************************** Support: http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=5560 ***********************************-->
<!--*********************************** ***********************************-->
<!--**********************************************************************************************************************************************************************************************************************-->
print("Here are the options:")
print(" 1. One Boss")
print(" 2. Two Boss")
print(" 3. Three Boss")
printf("Enter a number > ")
local selected = io.stdin:read()
if selected == "1" then
loadPaths("Boss1.xml");
elseif selected == "2" then
loadPaths("Boss2.xml");
elseif selected == "3" then
loadPaths("Boss3.xml");
end
</onLoad>
<waypoints>
Code: Select all
loadPaths("..getFilePath(__WPL.FileName)../Start.xml");
Code: Select all
loadPaths(getFilePath(__WPL.FileName).."/Start.xml");
Code: Select all
changeProfileOption(LOOT,False)
Code: Select all
changeProfileOption("LOOT",false)
Code: Select all
loadPaths("__WPL.FileName")
Code: Select all
loadPaths(__WPL.FileName)