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

Some scripts :)

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
I would really need some help in this stuff guys :P
First:
i want a item that when u use it adds to ur max health or mana 150k forever and can be used once by ea player

Second:
i would like to have an item that when ever u click on it it change ur outfit to monster ones somthngg like /newtype :P

third:
i woud lke to make a quest thing like in bob outfit the pillows seal yea like whenever player put them in right order a tp appears also when he go they disorganize again(would be glad to have map of this)

Fourth:
i would like to know how to make a wpn when it is weared it add +kill(mlvl,distance,shield,axe,etc....)


Thx. :)
 
Last edited:
Here is the second one

LUA:
local outfits = {5, 6, 7, 8, 9, 15, 18, 23, 24, 25, 29, 33, 37, 40, 48, 50, 53, 54, 57, 58, 59, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 76, 78, 93, 96, 97, 98, 100, 126, 127, 193,
				 194, 195, 196, 203, 214, 215, 216, 229, 232, 235, 237, 246, 249, 253, 254, 255, 259, 260, 264, 281, 282, 287, 296, 297, 298, 300, 301}
local outfit =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 2,
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doCreatureSay(cid, "Change!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end
 
im gonna work for the first one..
Noob.

@Topic, -- First One
LUA:
local cfg = 
{ 
    level = 1000,
    itemid = 7440,
    newHealth = 150000
}

local storage = 14565
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if (item.itemid == cfg.itemid) then
        if getPlayerLevel(cid) >= cfg.level then
            if getPlayerStorageValue(cid, storage) == -1 then
                setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid)+cfg.newHealth))
                doSendAnimatedText(getCreaturePosition(cid), "HEALTH",TEXTCOLOR_RED)
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
                doCreatureSay(cid, "You have recieved ".. cfg.newHealth .." extra health points, now your health is ".. getCreatureMaxHealth(cid) .."!", TALKTYPE_ORANGE_1)
                setPlayerStorageValue(cid, storage, 1)				
                doRemoveItem(item.uid)
            else
                doPlayerSendCancel(cid, "You have already used this before.")
            end
        else
            doPlayerSendCancel(cid, "Your level is not high enough.")  
        end
        return TRUE
    end
end
 
humm thx jdb,but when i make both items mana health same script i can only use on of the tow mana and health item,i need like i can use ea of them once by ea chrcter :P
(rep+):P
 
Back
Top