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
I wklejam w nim:
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
I wklejam
W action.xml dodaje linijke
Potem dodaj? w data/actions/scripts plik o nazwie VIP Door.lua<action uniqueid="11551" script="VIP Door.lua"/>
I wklejam w nim:
W otsie drzwi kt?re maj? by? przej?ciem maja ju? uniqueid="11551" ale dalej nie dzia?aj?.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
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
Potem w data/actions/scripts robi? plik VIP Item.lua<action itemid="5785" script="VIP Item.lua"/>
I wklejam
Mo?e kto? widzi w tym jakie? b??dy? Jak tak to prosz? poprawi?.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
Ostatnio edytowane przez moderatora: