Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
$config['site']['newaccount_premdays'] = 14; // how many days receive new account
local male = 132 -- id addonu dla male
local female = 128 -- id addony dla female
local nazwa = citizen -- wpisac nazwe addonu
local ile = 3 -- 1 to pierwszy, 2 to drugi, 3 to oba addony
local efekt = 12 -- efekt ktory sie pojawi na postaci podczas uzycia posagu
local storage = 6529 -- storage, jesli zajete to zmien
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,storage) == -1 then
doSendMagicEffect(getCreaturePosition(cid), efekt)
doPlayerSendTextMessage(cid,22,"Now you have "..nazwa.." addon!")
setPlayerStorageValue(cid,storage,0)
if(getPlayerSex(cid) == 0)then
doPlayerAddAddon(cid, female, ile)
else
doPlayerAddAddon(cid, male, ile)
end
else
doPlayerSendCancel(cid,"Juz uzyles tego posagu, mozesz to zrobic tylko raz.")
end
<action itemid="5055" event="script" value="addon.lua"/>
["citzen"]={136}
["hunter"]={137}
["mage"]={138}
["knight"]={139}
["noblewoman"]={140}
["summoner"]={141}
["warrior"]={142}
["barbarian"]={147}
["druid"]={148}
["wizard"]={149}
["oriental"]={150}
["pirate"]={155}
["assassin"]={156}
["beggar"]={157}
["shaman"]={158}
["norsewoman"]={252}
["nightmare"]={269}
["jester"]={270}
["brotherhood"]={270}
["demonhunter"]={288}
["yalaharian"]={324}
["citzen"]={128}
["hunter"]={129}
["mage"]={130}
["knight"]={131}
["nobleman"]={132}
["summoner"]={133}
["warrior"]={134}
["barbarian"]={143}
["druid"]={144}
["wizard"]={145}
["oriental"]={146}
["pirate"]={151}
["assassin"]={152}
["beggar"]={153}
["shaman"]={154}
["norsewoman"]={251}
["nightmare"]={268}
["jester"]={273}
["brotherhood"]={278}
["demonhunter"]={289}
["yalaharian"]={325}