Right now I'm trying to use those 3 fuctions in one step like : checkbuff(X) , if buff (X) return(false) then useitem(X) which is in inventory, but I really dont know how to do it because i barely understand the if fonction and mine isn't working.
I've got something else wich is also not working , if you can please help me
Code: Select all
if( inventory:itemTotalCount(214536) > 59 ) then
player:mount();Code: Select all
if( player:mount(false) ) then
player:mount();my whole script looks like this:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-16535" z="190" y="948"> </waypoint>
<!-- # 2 --><waypoint x="-16392" z="344" y="964"> </waypoint>
<!-- # 3 --><waypoint x="-16282" z="580" y="978"> </waypoint>
<!-- # 4 --><waypoint x="-16384" z="786" y="993"> </waypoint>
<!-- # 5 --><waypoint x="-16586" z="891" y="1005"> </waypoint>
<!-- # 6 --><waypoint x="-16796" z="814" y="1033"> </waypoint>
<!-- # 7 --><waypoint x="-17002" z="670" y="1022"> </waypoint>
<!-- # 8 --><waypoint x="-17104" z="441" y="1028"> </waypoint>
<!-- # 9 --><waypoint x="-16997" z="235" y="1005"> </waypoint>
<!-- # 10 --><waypoint x="-16780" z="110" y="962"> </waypoint>
<!-- # 11 --><waypoint x="-16561" z="195" y="948"> </waypoint>
if( inventory:itemTotalCount(214536) > 59 ) then
player:mount();
if( player:mount(false) ) then
player:mount();
__WPL:setDirection(WPT_FORWARD);
<!-- # 12 --><waypoint x="-16501" z="31" y="934" type="TRAVEL"> </waypoint>
<!-- # 13 --><waypoint x="-16331" z="-125" y="932" type="TRAVEL"> </waypoint>
<!-- # 14 --><waypoint x="-16105" z="-253" y="922" type="TRAVEL"> </waypoint>
<!-- # 15 --><waypoint x="-15874" z="-337" y="928" type="TRAVEL"> </waypoint>
<!-- # 16 --><waypoint x="-15699" z="-302" y="909" type="TRAVEL"> </waypoint>
<!-- # 17 --><waypoint x="-15613" z="-182" y="872" type="TRAVEL"> </waypoint>
<!-- # 18 --><waypoint x="-15516" z="-172" y="840" type="TRAVEL"> </waypoint>
<!-- # 19 --><waypoint x="-15500" z="-49" y="810" type="TRAVEL"> </waypoint>
<!-- # 20 --><waypoint x="-15350" z="-4" y="773" type="TRAVEL"> </waypoint>
<!-- # 21 --><waypoint x="-15123" z="-97" y="756" type="TRAVEL"> </waypoint>
<!-- # 22 --><waypoint x="-14952" z="-58" y="765" type="TRAVEL"> </waypoint>
<!-- # 23 --><waypoint x="-14765" z="-68" y="757" type="TRAVEL"> </waypoint>
<!-- # 24 --><waypoint x="-14592" z="-133" y="758" type="TRAVEL"> </waypoint>
<!-- # 25 --><waypoint x="-14440" z="-219" y="777" type="TRAVEL"> </waypoint>
<!-- # 26 --><waypoint x="-14323" z="-338" y="803" type="TRAVEL"> </waypoint>
<!-- # 27 --><waypoint x="-14228" z="-500" y="804" type="TRAVEL"> </waypoint>
<!-- # 28 --><waypoint x="-14128" z="-691" y="779" type="TRAVEL"> </waypoint>
<!-- # 29 --><waypoint x="-13940" z="-833" y="774" type="TRAVEL"> </waypoint>
if( player:mount(false) ) then
player:mount();
<!-- # 30 --><waypoint x="-13885" z="-808" y="780"> player:target_NPC("Ilana");
__WPL:setDirection(WPT_BACKWARD);
</waypoint>
</waypoints>