hey i am making a server and i have a few questions please answer them :
---how to make a bow that doesn't need an arrow !?
config.lua -
LUA:
removeWeaponAmmunition = false
---how can i make a mana rune !?
data/actions/actions.xml
LUA:
<action itemid="2308" script="manarune.lua"/>
data/actions/script
LUA:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos, 14)
doCreatureSay(cid,"Slayer ManaRune",19)
doPlayerAddMana(cid, 125000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
---how can i make a freeze rune !?
spells/data/support/paralyze rune. Make a copy and edit
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) -- Time
setConditionFormula(condition, -0.9, 0, -0.9, 0) -- Slow effects
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
if(not doCombat(cid, combat, var)) then
return false
end
doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
return true
end
---i am using an ot map editor monsters there are in names of tibia rl if i put a scorpion in game it actually summons a monsters that has same outfit number !?
open RME then file->import->Monster and Npcs or download a new monster data pack
---how can i add some commands like "!spells" and [ "/jail" and "/ban" and "/summon" ] for admins and staff !?
For ban go to Rule Violation, summon = /m, /n, /s
http://otland.net/f81/advanced-jail-system-177703/
--- how can i make a teleporter that opens it self each 30 min !?
http://otland.net/f81/teleport-online-176966/
---how can i make a pet dead !?
?

is this what you need?
http://otland.net/f81/darkhaos-pet-system-137197/
---how can i make my server by rebirthes !?
http://otland.net/f83/prestige-rebirth-system-onlook-working-137755/
---how to edit a lever's use !? [like it takes 50 (money) and gives you an item !?
http://otland.net/f81/mod-buy-items-bp-items-lever-great-config-v1-0-a-52929/
---how can i make a door that only vips pass !?
Check the VIP System
---how can i make a 15 days of vip scroll !?
Check the VIP System
---how can i make a door or a tp that surrtain reb/level can pass !?
UID = 2010, for level 10 and 2020 for level 20
---how can i make a quest that you need 4 players to start !?
LUA:
local config = {
daily = "no", -- allow only one enter per day? (like in global Tibia)
level = 100,
storage = 30015,
entry =
{
{x = 247, y = 659, z = 13},
{x = 247, y = 660, z = 13},
{x = 247, y = 661, z = 13},
{x = 247, y = 662, z = 13}
},
destination =
{
{x = 189, y = 650, z = 13},
{x = 189, y = 651, z = 13},
{x = 189, y = 652, z = 13},
{x = 189, y = 653, z = 13}
}
}
config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == 1946) then
if(config.daily) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
else
doTransformItem(item.uid, item.itemid - 1)
end
return true
end
if(item.itemid ~= 1945) then
return true
end
local players = {}
for _, position in ipairs(config.entry) do
local pid = getTopCreature(position).uid
if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
return true
end
table.insert(players, pid)
end
for i, pid in ipairs(players) do
doSendMagicEffect(config.entry[i], CONST_ME_POFF)
doTeleportThing(pid, config.destination[i], false)
doSendMagicEffect(config.destination[i], CONST_ME_ENERGYAREA)
end
doTransformItem(item.uid, item.itemid + 1)
return true
end
[sorry for english and please tell me how to make a new post my self ]