Elexonic
Well-Known Member
- Joined
- Jun 18, 2008
- Messages
- 1,920
- Reaction score
- 59
Need help scrtip some I do not work well, others to see if it can optimize and repair.
1º-> when you sell to a npc gives me this error-... --- Fixed
2º-> this script I want to see if you can do simpler or change some code to work better.
3º>
-Fixed By Strack!
4ºError in position :S --- Fixed By VirrageS
6º In ALL npc, when I say trade, bye ... Fixed
7ºwhen I open a door once the Pirmez works well ... but when you give the sec might not work.
The problem is that id is changed and I think that is why the problem.
Anyone know how to fix it?
FIxed
Bye!
1º-> when you sell to a npc gives me this error-... --- Fixed
2º-> this script I want to see if you can do simpler or change some code to work better.
Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) > 1 then
if (os.time() - getPlayerStorageValue(cid,4826) > 10*1) then
arena = {x=1151, y=1377, z=5}
doSummonCreature("wyvern", {x=1147, y=1379, z=5})
doTeleportThing(cid,arena,0)
doSendMagicEffect(arena,10)
setPlayerStorageValue(cid,4826,os.time())
else
doPlayerSendCancel(cid,'Wait.')
doSendMagicEffect(topos,2)
end
else
doSendMagicEffect(topos,2)
end
return 1
end
3º>
-Fixed By Strack!
4ºError in position :S --- Fixed By VirrageS
6º In ALL npc, when I say trade, bye ... Fixed
7ºwhen I open a door once the Pirmez works well ... but when you give the sec might not work.
The problem is that id is changed and I think that is why the problem.
Anyone know how to fix it?
FIxed
Bye!
Last edited: