bylundjonas
"Tibia Mapper"
need script pay for door
Why so salty man :'( Not everyone can be a professional scripter like youplease stop... you don't know how to code... just stop
indeed, ty captain obviousX and x is not the same thing.
local pos {x=160, y=60, z=7}
Code:local pos = {x = 160, y = 60, z = 7} -- where to be teleported.
local money = 4000000
local level = 1000
local pos = {x = 160, y = 60, z = 7}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerMoney(cid) < money or getPlayerLevel(cid) < level then
return doPlayerSendCancelMessage(cid, "Door requirements: [LEVEL]: "..level.." [MONEY]: "..money..".")
end
doPlayerRemoveMoney(cid, money)
doTeleportThing(cid, pos)
return true
end
Yep your code reflects your intellect.. simple code == simple minded no wonder you don't know anythingDon't say sorry to Codex he is a fuck boy. He gave you a code that has no need to be set up the way it is. It is over complicated and would never help someone new learn the language. Thats the kind of dumb ass he is... If you want a more user-friendly one.
Code:local money = 4000000 local level = 1000 local pos = {x = 160, y = 60, z = 7} function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerMoney(cid) < money or getPlayerLevel(cid) < level then return doPlayerSendCancelMessage(cid, "Door requirements: [LEVEL]: "..level.." [MONEY]: "..money..".") end doPlayerRemoveMoney(cid, money) doTeleportThing(cid, pos) return true end
Codexs code is like this: If the player doesnt have it level it tells u not high enough level....So now you go get high enough level then go back....oh NOW it tells you you dont have 4kk....Now you have to go get 4kk...Wow, noob scripter if you ask me. Plus look at all those uneeded lines I mean jesus....
Not true, sometimes simple is the solution, being too complex is stupid in many cases. I feel sorry for your parents, they must've struggled with youYep your code reflects your intellect.. simple code == simple minded no wonder you don't know anything
Hey, you do know you are suppose to identify not compare, right?Not true, sometimes simple is the solution, being too complex is stupid in many cases. I feel sorry for your parents, they must've struggled with you
Codex, I wonder if you can explain what you added there to me "condition part" tried understanding it but failed.Hey, you do know you are suppose to identify not compare, right?
c is a table, con is a property of c which is a function, it returns 2 values,Codex, I wonder if you can explain what you added there to me "condition part" tried understanding it but failed.
con = function(id) return getPlayerLevel(id) >= level, getPlayerMoney(id) >= money end,
function con(id)
return getPlayerLevel(id) >= level, getPlayerMoney(id) >= money
end
local condition = {c.con(cid)}
local condition = {true, false}
if condition[1] then
Either use the search on this site or google, or start your own thread on the request boards.Since we are on the door topic here is there a script to make a player pay 200 crystal coins to enter the door for 5 minutes and be kicked to temple after 5mins inside the door?