• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Basic level doll

Cornex

Web Developer
Staff member
Global Moderator
Joined
Jun 15, 2008
Messages
3,444
Solutions
5
Reaction score
1,167
Location
Sweden
Hello, i just release some basic scripts ^^

This will add levels to your character when you use the item!

Lua:
local config = {
	addlevels = 1, --- How many levels you will get!
	itemid = 6119, --- What item you use
	maxlevel = 100 --- Over this level you can't use this item
}


function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerLevel(cid) > config.maxlevel then
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You are to high level to use this scroll!")
	else
           doPlayerAddLevel(cid, config.addlevels)
	   doCreatureSay(cid, "You have recived "..config.addlevels.." levels!", TALKTYPE_ORANGE_1)
	   doRemoveItem(item.uid)
	end
	return TRUE
end
 
Hello, i just release some basic scripts ^^

This will add levels to your character when you use the item!

Lua:
local config = {
    addlevels = 1, --- How many levels you will get!
    itemid = 6119, --- What item you use
    maxlevel = 100 --- Over this level you can't use this item
}


function onUse(cid, item, fromPosition, itemEx, toPosition)
    if getPlayerLevel(cid) > config.maxlevel then
       doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You are to high level to use this scroll!")
    else
           doPlayerAddLevel(cid, config.addlevels)
       doCreatureSay(cid, "You have recived "..config.addlevels.." levels!", TALKTYPE_ORANGE_1)
       doRemoveItem(item.uid)
    end
    return TRUE
end
Thanks For This Cornex :) but why did you add this
Code:
itemid = 6119
since you didn't use it :p
 
Back
Top