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

[OTBR] Need Addon NPC

walltimer

Active Member
Joined
Aug 5, 2020
Messages
170
Reaction score
26
Hello i need a NPC addon, that will give me addon what i chose for specyfic item, thanks :)
 
next time use request please mate :D

local config = {
[ITEMID] = {id = OUTFITID},
[ITEMID] = {id = OUTFITID}

}

local addOutfit = Action()

function addOutfit.onUse(player, item, fromPosition, target, toPosition, isHotkey)

local outfita = config[item.itemid]

if outfita then
if player:hasOutfit(outfita.id) then
player:sendCancelMessage("You alredy have this outift.")
return true
end
player:addOutfitAddon(outfita.id, 3)
end
end

addOutfit:aid(5251)
addOutfit:register()

keep in mind u must regirst the item with actionId 5251


@moderator I canno't use the buttons for lua or anything else..
 
next time use request please mate :D

local config = {
[ITEMID] = {id = OUTFITID},
[ITEMID] = {id = OUTFITID}

}

local addOutfit = Action()

function addOutfit.onUse(player, item, fromPosition, target, toPosition, isHotkey)

local outfita = config[item.itemid]

if outfita then
if player:hasOutfit(outfita.id) then
player:sendCancelMessage("You alredy have this outift.")
return true
end
player:addOutfitAddon(outfita.id, 3)
end
end

addOutfit:aid(5251)
addOutfit:register()

keep in mind u must regirst the item with actionId 5251


@moderator I canno't use the buttons for lua or anything else..
Lua Script Error: [Scripts Interface]
/ots/data/scripts/addongive.lua
/ots/data/scripts/addongive.lua:3: table index is nil
stack traceback:
[C]: in function '__newindex'
ots/data/scripts/addongive.lua:3: in main chunk
addongive.lua [error]


ok i just have to put IDs, to work, but can i use it on any 'statue' for example? right now just putting actionID?
Post automatically merged:

Lua Script Error: [Scripts Interface]
/ots/data/scripts/addongive.lua
/ots/data/scripts/addongive.lua:3: table index is nil
stack traceback:
[C]: in function '__newindex'
ots/data/scripts/addongive.lua:3: in main chunk



ok i just have to put IDs, to work, but can i use it on any 'statue' for example? right now just putting actionID?
When i done that , nothings happens.
 
Last edited:
next time use request please mate :D

local config = {
[ITEMID] = {id = OUTFITID},
[ITEMID] = {id = OUTFITID}

}

local addOutfit = Action()

function addOutfit.onUse(player, item, fromPosition, target, toPosition, isHotkey)

local outfita = config[item.itemid]

if outfita then
if player:hasOutfit(outfita.id) then
player:sendCancelMessage("You alredy have this outift.")
return true
end
player:addOutfitAddon(outfita.id, 3)
end
end

addOutfit:aid(5251)
addOutfit:register()

keep in mind u must regirst the item with actionId 5251


@moderator I canno't use the buttons for lua or anything else..
He wanted npc not an item
 
I would help you if you would be clear what you want.

you ask always different stuff

so as example
if statue gets actionID 2000 then he should receive citizien outfit
if statue gets actionID 2001 then he should receive hunter outfit

like this???
 
I would help you if you would be clear what you want.

you ask always different stuff

so as example
if statue gets actionID 2000 then he should receive citizien outfit
if statue gets actionID 2001 then he should receive hunter outfit

like this???
1st, thanks for answers, 2nd, i want one statue that will can give lot of outfits, for example when we have 'apple' in backpack it will give me full citizen, if i will have 'banana' full hunter :) Or is it to hard to make?
 
Back
Top