• 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!

Help finding script

Gitzmo

Combat Bird
Joined
Apr 16, 2012
Messages
199
Reaction score
1
Hello everyone out in OTland I have a request. I looked and couldn't find this one script I have been needing. I need a script where you click use, and you receive a vocation that is like a donation vocation with fast attack etcetc I have the vocation made and usable I just need a script to give the vocation. If anyone can help me I would appreciate it.
 
yeh i did just make one of these,

place this in your actions folder. for this example I saved it as data\actions\quests\Vocationitem.lua

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local voc = {1,2,3,4}
 
if item.actionid == 8016 and isInArray(voc,getPlayerVocation(cid)) and getPlayerStorageValue(cid, 70000) == 1 then
doPlayerSetPromotionLevel(cid, 1)
doCreatureSay(cid, "promoted!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 70000, 2)
elseif getPlayerStorageValue(cid, 70000) == 2 then
doCreatureSay(cid, "I cant use this again!", TALKTYPE_ORANGE_1)
end
return true
end

then add this to actions

Code:
	<action actionid="8017" script="quests/vocationitem.lua"/>

Just make the item id in RME map editor 8016 and when you use it you will get promoted, change the vocations as you wish.

Rep if it helped.
Kinglewey
 
TY I forgot all about the requests section! but yes it is to set a WHOLE NEW voc that can also be promoted so Limos how could I make that work with Kinglewey1st' script?
 
Back
Top