• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

[x.x][Request][Actions]Vip door

Doctor Who

Advanced User
Dołączył
Listopad 8, 2008
Posty
221
Liczba reakcji
7
Witam mam skrypt na drzwi dla " vip" oraz item daj?cy "vipostwo" lecz gdy dodaje go na ots nie dzia?a.
W action.xml dodaje linijke
<action uniqueid="11551" script="VIP Door.lua"/>
Potem dodaj? w data/actions/scripts plik o nazwie VIP Door.lua
I wklejam w nim:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 6905 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=2283, y=833, z=6} -- 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 otsie drzwi kt?re maj? by? przej?ciem maja ju? uniqueid="11551" ale dalej nie dzia?aj?.
Mo?e kto? widzi w tym jakie? b??dy? Jak tak to prosz? poprawi?.
Je?li chodzi o itemek daj?cy vip to w action.xml dodaje
<action itemid="5785" script="VIP Item.lua"/>
Potem w data/actions/scripts robi? plik VIP Item.lua
I wklejam
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
Mo?e kto? widzi w tym jakie? b??dy? Jak tak to prosz? poprawi?.
 
Ostatnio edytowane przez moderatora:
Odp: Vip door

Odp: Vip door

hehhe z tym medalem mam ale drzwi si? nie otwieraja ;/ pokombinuje jeszcze
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
getPlayerStorageValue(cid, 11551)
doSendAnimatedText(getPlayerPosition(cid), "Elo ;]!", TEXTCOLOR_RED)
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

to do medalu ;]

hehe proste ;p

masz tam w VIP Door takie co?
function onUse(cid, item, frompos, item2, topos)
if item.uid == 6905 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=2283, y=833, z=6} -- If that above quest is complete, It will teleport you here.
if queststatus == -1 then
doCreatureSay(cid, "Sorki nie masz VIpa zeby tu przej?? kup u gm ;]!. ", TALKTYPE_ORANGE_1)
else
doTeleportThing(cid, area,0)
doSendMagicEffect(topos, 12)
doCreatureSay(cid, "Hiho VIP Player!", TALKTYPE_ORANGE_1)
end
end
return 1
end

6905 << to jest ID Drzwi kt?re musisz mie? ?eby prezj?? ;]
{x=2283, y=833, z=6} <<< gdzie ma ci? przenosi? ;]

My?l? ?e pomog?em ;]
je?li tak to daj reputka ;]


P.S to dzia?a tylko na OTS 8.4.

Pozdrawiam tereksatron
 
Ostatnia edycja:
Odp: Vip door

Odp: Vip door

hehhe z tym medalem mam ale drzwi si? nie otwieraja ;/ pokombinuje jeszcze
to do medalu ;]
hehe proste ;p
masz tam w VIP Door takie co?
6905 << to jest ID Drzwi kt?re musisz mie? ?eby prezj?? ;]
{x=2283, y=833, z=6} <<< gdzie ma ci? przenosi? ;]
My?l? ?e pomog?em ;]
je?li tak to daj reputka ;]
P.S to dzia?a tylko na OTS 8.4.
Pozdrawiam tereksatron


Nie prawda!Jest to unique ID!
 
Odp: [x.x][Request][Actions]Vip door

Dobra ludziska przerobi?em te skrypty i all ju? dzia?a jak natura chcia?a :P

do actions.xml:
<action uniqueid="5123" script="vipdoor.lua"/>
5123<<< te uniqueid do drzwi w mapeditorze dajemy

teraz data/action/scripts tworzymy plik:
vipdoor.lua a w nim:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5123 then
queststatus = getPlayerStorageValue(cid,1155)
area = {x=822, y=1075, z=7}<<< tu wpisujemy pozycje za drzwiami
if queststatus == 1 then
doTeleportThing(cid, area)
doSendMagicEffect(topos, 12)
doPlayerSendTextMessage(cid,22,"Hiho VIP Player!")
else
doPlayerSendTextMessage(cid,22,"Sorry, but only VIP Players can pass here!")
end
end
return 1
end

Do actions.xml dodajemy:
<action itemid="5785" script="vipitem.lua"/>

a do data/actions/scripts tworzymy plik a w nim vipitem.lua:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5785 then
if getPlayerLevel(cid) > 1 then
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid,22,"CONGRATULATIONS! You are now a VIP!")
setPlayerStorageValue(cid, 1155, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end

i tak aby przej?? przez drzwi trzeba u?y? tego medalu on nada nam StorageValue kt?re jest potrzebne do otwarcia drzwi ;)

pozdro all mam nadziej? ?e pomog?em :P
 
Odp: [x.x][Request][Actions]Vip door

No moze sie przydac taki skrypt ;), dzieki
 
Odp: [x.x][Request][Actions]Vip door

function onUse(cid, item, frompos, item2, topos)
if item.uid == 5123 then
queststatus = getPlayerStorageValue(cid,1155)
area = {x=822, y=1075, z=7}<<< tu wpisujemy pozycje za drzwiami
if queststatus == 1 then
doTeleportThing(cid, area)
doSendMagicEffect(topos, 12)
doPlayerSendTextMessage(cid,22,"Hiho VIP Player!")
else
doPlayerSendTextMessage(cid,22,"Sorry, but only VIP Players can pass here!")
end
end
return 1
end
zaznaczy?em na czerwono co nale?y usun?? :)
 
Odp: [x.x][Request][Actions]Vip door

Kurde zrobilem tak ja wy mowicie i nadal mam
Kod:
[18/03/2009  05:53:53] Warning: [Event::loadScript] Can not load script. data/actions/scripts/vipdoor.lua
[18/03/2009  05:53:53] cannot open data/actions/scripts/vipdoor.lua: No such file or directory
:( I to co Tereksatron napisal tez ;/
 
Odp: [x.x][Request][Actions]Vip door

Skrypt ten wymiata jak bym m?g? dam bym reputa sam go u?ywam na swoim OT !! Polecam !! 10/10:p
 
Odp: [x.x][Request][Actions]Vip door

Zrobicie VIP Door na tibie 8.10 i tak ,aby dzia?a?o na Sentil v2. PLEASE :)
 
Odp: [x.x][Request][Actions]Vip door

A ja mam problem. Zainstalowa?em skrypt i przesta?y mi dzia?a? wszystkie schody, drabiny itp. :P. Usun??em skrypt i dalej nie dzia?aj?. Ma kto? pomys? jak to naprawi?, albo gdzie tkwi b??d?

Mam silnik TFS 0.2.2 pod tibie 8.4

@DOWN
Dzi?ki ;) Ju? dzia?a
 
Ostatnia edycja:
Odp: [x.x][Request][Actions]Vip door

@UP
to zapewne niejest wina skryptu tylko musiales grzebac w items.xml i gdzies niepotrzebnie masz za duzo </item> lub / albo za malo. jesli mam racje to takze jak klikniesz na jakis item look to bedzie tylko pisac id itemu - bez nazwy
 
Odp: [x.x][Request][Actions]Vip door

Tu troch? inna wersja (edit by Me) dzia?a chyba pod all clienty :P

function onUse(cid, item, frompos, item2, topos)
vipstatus = getPlayerStorageValue(cid,1155)
stroge = 1155

if stroge > 0 then
if vipstatus == 1 then
pos = getPlayerPosition(cid)

if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
doPlayerSendTextMessage(cid,22,"Zegnamy i zapraszamy ponownie!")
else
pos.y = topos.y - 1
doPlayerSendTextMessage(cid,22,"Witamy w Vip Land zyczymy milego pobytu!")
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
doPlayerSendTextMessage(cid,22,"Zegnamy i zapraszamy ponownie!")
else
pos.x = topos.x - 1
doPlayerSendTextMessage(cid,22,"Witamy w Vip Land zyczymy milego pobytu!")
end
else
doPlayerSendTextMessage(cid,22,'Stan na przeciwko drzwi.')
return 1
end

doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'Nie posiadasz Vip itemu wiec nie wchodzisz.')
end
return 1
else
return 0
end
end

Vip item to tego jak w postach wy?ej je?li skrypt nie dzia?a to piszcie wtedy poprawie ;)

---------------------------------------------------------------------------------------------------

@Alek95
ten b??d oznacza ze ots nie morze znale?? pliku "vipdoor.lua"

@down
w zasadzie nie wiem xD
 
Ostatnia edycja:
Odp: [x.x][Request][Actions]Vip door

Miziak widz? u Ciebie niepotrzebn? rzecz a mianowicie po co dajesz
Kod:
if stroge > 0 then
jak to zawsze zwr?ci prawd? ??

pzdr
 
Ostatnia edycja:
Do góry