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

Medal VIP

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I need a script that you use in the medal of honor and (win) earn 30 days from vip
I use the function:
if vip.hasVip(cid) == TRUE then
 
cara ele precisa da function para funcionar!!!
mais ninguém intende!
<//ENGLISH>>

guy he needs the function to work!
 
Code:
local days = 30

function onUse(cid, item, fromPosition, itemEx, toPosition)
	vip.addVipByAccount(getPlayerAccount(cid), vip.getDays(days))
	doCreatureSay(cid, "Congratulations " ..  getCreatureName(cid) .. "! You have received " .. days .. " VIP days!", TALKTYPE_ORANGE_1)
	doRemoveItem(item.uid)
	return true
end
 
Last edited:
[Error - Action Iterface]
data/actions/scripts/script4.lua:OnUse
stack traceback:
[C]: in function 'assert'
data/lib/049-vipsys.lua:85: in function 'addVipByAccount'
data/actions/scripts/script4.lua:4: in function <data/actions/scripts/script4.lua:3>


@EDIT
[Error - Action Iterface]
data/actions/scripts/script4.lua:OnUse
Description:
data/actions/scripts/script4.lua:5: attempt to concatenate global 'name' <a nil value>
stack traceback:
data/actions/scripts/script4.lua:5: in function <data/actions/scripts/script4.lua:3>
 
Back
Top