As you all know, now if you don't pay at goblins you can't open any chest so i had to modify my goblins script to make it talk with the guy inside...
First I tried this
Code: Select all
<!-- # 2 --> <waypoint x="1904" z="2230" y="308" tag="STARTM4">
player:target_NPC(GetIdName(113094));
sendMacro("ChoiceOption(1);");
waitForLoadingScreen();</waypoint>
Code: Select all
<!-- # 2 --> <waypoint x="1904" z="2230" y="308" tag="STARTM4">
player:target_NPC(GetIdName(113094));
sendMacro("ChoiceOption(1);"); yrest(500)
sendMacro("ChoiceOption(1);");
waitForLoadingScreen();</waypoint>
Could have anything to do, that i get converted into a goblin? an address change or something? anyway i'm not sure how to fix it...
And another thing... when i get to the end, I open the chest, and my character stays there trying to open it once again for about for or five times... then it justs continues...
this is what i have (i haven't made this script...)
Code: Select all
function getTreasureChest()
EventMonitorStart("TreasureChest", "PLAYER_BAG_CHANGED")
local retry_count = 0;
while(retry_count<7)do
player:target_Object(113137,7000,nil,true)
local time, moreToCome, msg = EventMonitorCheck("TreasureChest", "1")
if msg ~= nil then
EventMonitorStop("TreasureChest")
break
end
retry_count = retry_count + 1;
end
printf("Chest opens. continuing.\n")
end
Thank's! and forgive me for my bad english...