PDA

View Full Version : Yala quest



sholh
02-04-2016, 05:22 PM
Hello brother
I've planned to make yala quest script and i will post it but i need simple code for this part
( Kill Tormented Ghosts and use the Ghost Residue on the charm thrice — this will make 6 more Tormented Ghosts appear. At this point the Ghost Charm will then change into a Charged Ghost Charm.)
i wanna code that use dead ghost on (x,y,z)
so any one can help
i will post it here when i finishing it free :D
Jontor
Oscagi

Jontor
02-04-2016, 05:55 PM
Try thinking something with the code below


local pos = Self.Position()

for x = -7, 7 do
for y = -5, 5 do
if (Map.GetTopUseItem(pos.x + x,pos.y + y, pos.z).id == <dead ghost id here>) then
return {x = pos.x+x, y = pos.y+y, z = pos.z}
end
end
end