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

Lua Quests not working

Kthxbye

New Member
Joined
Jul 11, 2012
Messages
122
Reaction score
2
None of my quests are working, I have searched everywhere for a fix.
real map tfs 1.3 10.98 any help at all will be grateful
Thank you.
Quests are giving items but only once every serversave
 
im not programer at all :D can you please remove those what i dont need ?

I cant find even 2000 action id in the code :O
Post automatically merged:



like this ? :)


update , no doesnt work getting errors
Can anyeone helpout please
 
If you want something custom, you'll need to use a custom script.
Lua:
local actionId = 45001
local reward = {1111, 2, 100} -- {itemid, amountMin, amountMax}

local action = Action()

function action.onUse(player, item, fromPosition, target, toPosition, isHotkey)
    player:addItem(reward[1], math.random(reward[2], reward[3]), true)
    return true
end

action:aid(actionId)
action:register()
can this be made so by clicking player gets BP id or BAG id , and inside the presents/rewards ??


+ possible to remake the script to add 500 health and 500 mana as quests , click box - gain 500hp 500hp mana as reward.

+ does possible to make quest to give 1% of mana leeche pernament to character or any other skill ? by number ?


thanks in advance
 
Back
Top