• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Chest Vocation

Stewie

Family Guy # ;3
Joined
May 3, 2010
Messages
786
Reaction score
12
Location
TV
Hi Otlanders,

someone can make a chest when sorc open add 10 ML,and 20 level,druid add 10 ml and 20 lvl,knight add 2 ml,5 axe,5 shield and 20 level,paladin add 5 ml ,6 distance,5 shield and 20 level.

Thx
 
try this
LUA:
function onUse(cid, item, frompos, item2, topos)

queststatus = getPlayerStorageValue(cid,7777)
topos = getPlayerPosition(cid)

if item.actionid == 1555 and queststatus == -1 and getPlayerVocation(cid) == 1 then
if getPlayerLevel(cid) < 20 then
setPlayerStorageValue(cid,7777,1)
doPlayerSendTextMessage(cid,24,message)
doSendMagicEffect(topos,30)
doPlayerAddMagLevel(cid, 10)
doPlayerAddExperience(cid, (getExperienceForLevel(20) - getPlayerExperience(cid)))
end

elseif item.actionid == 1555 and queststatus == -1 and getPlayerVocation(cid) == 2 then
if getPlayerLevel(cid) < 20 then
setPlayerStorageValue(cid,7777,1)
doPlayerSendTextMessage(cid,24,message)
doSendMagicEffect(topos,30)
doPlayerAddMagLevel(cid, 10)
doPlayerAddExperience(cid, (getExperienceForLevel(20) - getPlayerExperience(cid)))
end

elseif item.actionid == 1555 and queststatus == -1 and getPlayerVocation(cid) == 3 then
if getPlayerLevel(cid) < 20 then
setPlayerStorageValue(cid,7777,1)
doPlayerSendTextMessage(cid,24,message)
doSendMagicEffect(topos,30)
doPlayerAddMagLevel(cid, 5)
doPlayerAddExperience(cid, (getExperienceForLevel(20) - getPlayerExperience(cid)))
doPlayerAddSkill(cid, SKILL_DISTANCE, 6)
doPlayerAddSkill(cid, SKILL_SHIELDING, 5)
end

elseif item.actionid == 1555 and queststatus == -1 and getPlayerVocation(cid) == 4 then
if getPlayerLevel(cid) < 20 then
setPlayerStorageValue(cid,7777,1)
doPlayerSendTextMessage(cid,24,message)
doSendMagicEffect(topos,30)
doPlayerAddMagLevel(cid, 2)
doPlayerAddExperience(cid, (getExperienceForLevel(20) - getPlayerExperience(cid)))
doPlayerAddSkill(cid, SKILL_AXE, 5)
doPlayerAddSkill(cid, SKILL_SHIELDING, 5)
end

elseif queststatus == 1 then
doPlayerSendCancel(cid,cancel)
doSendMagicEffect(topos, CONST_ME_POFF)   
end
    return TRUE
               end
 
Last edited:
Back
Top