move the item
Posted: Wed Apr 16, 2014 3:43 pm
Hi,
Items need to move to the "Storage Chest" and "bank"
It's not working, can you help me please
Items need to move to the "Storage Chest" and "bank"
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
startGMDetect()
function relog()
SetCharList({
{account=1,chars={1}},
{account=2,chars={1,3}},
{account=3,chars={1,2}},
{account=4,chars={1}},
})
SetRestartClientSettings(4, "rom");
LoginNextChar()
loadProfile()
loadPaths(__WPL.FileName)
player:update()
end
function Maide()
print(count)
inventory:update()
local ISitems_array = {
206632, -- Infernal Nightmare Soul Core
}
for slot = 61, 240 do
item = inventory.BagSlot[slot]
-- if item and item.ItemShopItem then
if table.contains(ISitems_array, item.Id) then
-- item:moveTo("Storage Chest")
-- item:moveTo(112714)
item:moveTo("bank")
end;
end;
end
</onLoad>
<waypoint x="-35783" z="5436" y="161">player:mount()
player:target_NPC(113689); yrest(2000) -- Ange Rasa
yrest(2000);
sendMacro("ChoiceOption(5);");
yrest(2000);
sendMacro("ChoiceOption(1);");
waitForLoadingScreen()
</waypoint>
<!-- # 2 --><waypoint x="5231" z="-2205" y="103">
cotclean()
CleanBag(800,0,true, false)
</waypoint>
<!-- # 3 --><waypoint x="5176" z="-2093" y="103"> </waypoint>
<!-- # 4 --><waypoint x="4807" z="-2004" y="119">
travelTo("Heffner")
</waypoint>
<!-- # 5 --><waypoint x="-6511" z="-3792" y="182"> </waypoint>
<!-- # 6 --><waypoint x="-6949" z="-3655" y="173">
player:target_NPC(117291); yrest(2000) -- Nicole Rebecca
yrest(2000);
sendMacro("ChoiceOption(1);");
waitForLoadingScreen()
Maide()
-- stopPE();
</waypoint>
<!-- # 7 --><waypoint x="-6511" z="-3792" y="182">
loadPaths("My Skin_cot_AT/My_Skin_daily")
relog()
</waypoint>
</waypoints>