Skrypty & Kody Pos?g kt?ry daje nam addon , jak ustawic premium na 14 dni [tfs 04.]

Status
Zamknięty.

Pingwino

Active User
Zarejestrowany
Dołączył
Luty 9, 2012
Posty
94
Liczba reakcji
1
Witam potrzebuj? skrypty na pos?g kt?ry daje jaki? addon full
ID pos?ga [ 5055 ]

2. Jak zrobi? ?e ka?da za?o?ona posta? b?dzie posiada?a 14 dni premium?
 
Odp: Pos?g kt?ry daje nam addon , jak ustawic premium na 14 dni [tfs 04.]

2.
PHP:
$config['site']['newaccount_premdays'] = 14; // how many days receive new account
W config/config.php

Co do 1.
addon.lua:
PHP:
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
Do action:
PHP:
<action itemid="5055" event="script" value="addon.lua"/>

Nie chce mi sie teraz myslec, ide spac.
Nie wiem czy nie pokopalem teraz addonow male i female xd
No ale i tak mozesz sobie latwo zmienic zmieniajac id addony na poczatku skryptu.

Jak by co to tu masz id addonow:
Female:
Kod:
["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}
Male:
Kod:
["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}
 
Ostatnia edycja:
Status
Zamknięty.
Back
Do góry