What's new

Vip runa!!!

Viz

Advanced User
Joined
Dec 16, 2008
Messages
186
Reaction score
24
Witam !
Jest mo?e jaki? poradnik, dzi?ki kt?remu stworze na swoim OTS Vip rune.
Co? podobnego do pacc, ale jednak nie koniecznie dzia?aj?cego tak samo.
Nie chc? dni premium tylko tak ?eby np. ludzie mieli dost?p do danych miast b?d? na wybrane expa.
Prosz? o pomoc.
Viz~
 

Hulala

Senior User
Joined
May 2, 2008
Messages
539
Reaction score
37
Age
32
Odp: Vip runa!!!

Mo?e to Ci zadzia?a:
actions/scripts
vipaccess.lua
Code:
-- By Kuba1418

function onUse(cid, item, frompos, item2, topos)

if item.itemid == 5785 then

local playerpos = getCreaturePosition(cid)

doRemoveItem(item.uid,5785)
setPlayerStorageValue(cid,21444,1)

doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Vip Access!", TALKTYPE_ORANGE_1)
end
end

Code:
<action itemid="xxxx" script="vipaccess.lua" />

xxxx - Id Runki.
 
  • Like
Reactions: Viz

Viz

Advanced User
Joined
Dec 16, 2008
Messages
186
Reaction score
24
Odp: Vip runa!!!

No dobrze,ale jakie to ma zdolno?ci i co robi ?
 

Clanwarrior

Active User
Joined
May 26, 2009
Messages
68
Reaction score
2
Odp: Vip runa!!!

function onUse(cid, item, frompos, item2, topos)

if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doCreatureSay(cid, "CONGRATULATIONS! You are now a VIP! You can now enter the VIP-area and use unique features!. ", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 11551, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
Tworzymy plik z powy?szymi danymi o nazwie VIP Item w actions/other.Teraz do actions.xml doklejamy to :
<action itemid="5785" script="other/VIP Item.lua"/>
Teraz skrypt na drzwi dla Vipa ;].W actions/other tworzymy plik VIP Door i wklejamy dane :
function onUse(cid, item, frompos, item2, topos)
if item.uid == 11551 then -- This number you will imput into map editor for the door you wish
queststatus = getPlayerStorageValue(cid,11551) -- Quest number that needs to be COMPLETE.
area = {x=twojex, y=twojey, z=twojez} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doCreatureSay(cid, "Sorry, but only VIP Players can pass here! Buy VIP on the WEB!. ", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Hiho VIP Player!", TALKTYPE_ORANGE_1)
end
end
return 1
end
W "twojex" wklejamy pozycj? x gdzie ma nas tepowa?.W "twojey" wklejamy pozycj? y gdzie ma nas tepowa?.W "twojez" wklejamy pozycj? z gdzie ma nas tepowa?.Zapisujemy ;].Teraz linijka do actions.xml :
<action uniqueid="11551" script="quests/VIP Door.lua"/>
Teraz wchodzisz w map editor, bierzesz parametry na drzwi kt?re maj? by? dla vip i zmieniasz ich uniqueid na "11551".Zapisujesz.Teraz VIP Medal to id - 5785.Skrypt z Roxor 8.42 OTS ;].

My?l?, ?e pomog?em.
 

Zizi Knight

Advanced User
Joined
Jun 14, 2008
Messages
467
Reaction score
34
Odp: Vip runa!!!

#UP
i co jak u?yje tej runki to co b?d? m?g? p?ywa? gdzie chce ??
NO chyba nie
#TOP

ja bym Ci poleca? vip door
Testowa?em i naprawd? dzia?a


pozdrawiam Zizi
 

Hulala

Senior User
Joined
May 2, 2008
Messages
539
Reaction score
37
Age
32
Odp: Vip runa!!!

Nadaje osobie VIP ACCESS. Je?li kto? tego nie b?dzie mia? to nie mo?e otworzy? drzwi a i ?ap do drzwi:

vipdoor.lua
Code:
-- Vip Door by Kuba1418 --

function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)


if vipstatus == 1 then

doTransformItem(item.uid, item.itemid + 1)

playerpos = getPlayerPosition(cid)

doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}

if playerpos.y == doorpos.y + 1 and playerpos.x == doorpos.x then

doMoveCreature(cid, 0)

elseif playerpos.x == doorpos.x - 1 and playerpos.y == doorpos.y then

doMoveCreature(cid, 1)

elseif playerpos.y == doorpos.y - 1 and playerpos.x == doorpos.x then

doMoveCreature(cid, 2)

elseif playerpos.y == doorpos.y and playerpos.x == doorpos.x + 1 then

doMoveCreature(cid, 3)

elseif playerpos.x == doorpos.x + 1 and playerpos.y == doorpos.y - 1 then

doMoveCreature(cid, 4)

elseif playerpos.x == doorpos.x - 1 and playerpos.y == doorpos.y - 1 then

doMoveCreature(cid, 5)

elseif playerpos.x == doorpos.x + 1 and playerpos.y == doorpos.y + 1 then

doMoveCreature(cid, 6)

elseif playerpos.x == doorpos.x - 1 and playerpos.y == doorpos.y + 1 then

doMoveCreature(cid, 7)

end

else
doCreatureSay(cid, "Nie posiadasz Vip Access. Aby go zakupic pisz do GOD HesuS!", TALKTYPE_ORANGE_1)
end

return 1

end

Code:
<action actionid="2075" script="vipdoor.lua"/>

Mam nadziej? ?e zrozumia?e?.
 

Piotrek05

Advanced User
Joined
Feb 18, 2009
Messages
471
Reaction score
38
Odp: Vip runa!!!

Tutaj masz takie cos:
Code:
http://tibia.net.pl/actions/52075-vip-door.html
Wyt?umaczone i wog?le.
 

Viz

Advanced User
Joined
Dec 16, 2008
Messages
186
Reaction score
24
Odp: Vip runa!!!

Vip accesss nadajemy poprzez rune ? czy jak ?
 

Hulala

Senior User
Joined
May 2, 2008
Messages
539
Reaction score
37
Age
32
Odp: Vip runa!!!

Od tego czego tylko chcesz. U mnie masz np:
Code:
<action itemid="xxxx" script="vipaccess.lua" />

Gdzie xxxx to id itemu dzi?ki kt?remu dostaniemy VIP.
 

Clanwarrior

Active User
Joined
May 26, 2009
Messages
68
Reaction score
2
Odp: Vip runa!!!

Z tego co wiem takie operacj? wykonuje si? w stages.xml w folderze data/xml/.

To do stages.xml wbij to :

<?xml version="1.0" encoding="UTF-8"?>
<stages>
<config enabled="0"/>
<stage minlevel="1" maxlevel="8" multiplier="7"/>
<stage minlevel="9" maxlevel="20" multiplier="6"/>
<stage minlevel="21" maxlevel="50" multiplier="5"/>
<stage minlevel="51" maxlevel="100" multiplier="4"/>
<stage minlevel="101" multiplier="5"/>
</stages>
Przestaw sobie na w?asne parametry w tym schemacie...
 

Zizi Knight

Advanced User
Joined
Jun 14, 2008
Messages
467
Reaction score
34
Odp: Vip runa!!!

Odwied? te stron? kt?r? ci poda?em w poprzednim po?cie
#UP
CO to za spam wogule ma by? ?? Nie znasz si? to nie pisz a nie nabijaj se posty

#Hulala
Ten skrypt nie jest tw?j bo jest z strony kt?ra ja mu poda?em
a po 2 nawe stopki nie usun??e?
-- Vip Door by Kuba1418 --
 

Clanwarrior

Active User
Joined
May 26, 2009
Messages
68
Reaction score
2
Odp: Vip runa!!!

Sorry bo m?j post by? nies?usznie usuni?ty i musia?em go od nowa wstawia? w po?piechu i mi si? tematy pomyli?y prosz? o skasowanie tego posta wcze?niejszego mojego.
A i ps. to sam si? nie znasz.
 
Top