What's new

-Skrypt vip acces

Status
Not open for further replies.

Rikimaru

Active User
Joined
Sep 26, 2008
Messages
85
Reaction score
3
Witam!
Mam pro?b?, czy mog?by mi ktos napisa? skrypt. Opisze go teraz ;d

Nazwa i wersja silnika: Wyro v3a by Maly Wizak
Wersja klienta Tibii: 8.1
Opis: Mam juz postawiony portal tylko chce aby osoba mog?a w niego wejsc tylko wtedy gdy uzyje itemy o id : ....

Chcia?bym jeszcze dodac, ?e to nie jest taki zwyk?y teleport, jest to p?omien o id "5068"


to jest ten ktorego uzywam, ale on nie dziala
PHP:
--VIP MALY WIZAK--
function onUse(cid, item, frompos, item2, topos)
local storageValue = 21444
vipstatus = getPlayerStorageValue(cid,storageValue)
newnPosition = {x=1123, y=1761, z=0} -- pozycja temple VIP-a!
if vipstatus == 1 then
playerpos = getPlayerPosition(cid)
doorpos = {x = frompos.x, y = frompos.y, z = frompos.z, stackpos = 253}
if item.actionid == 2075 and getPlayerStorageValue(cid,21444) == 1 then
doTeleportThing(cid,newnPosition)
doSendMagicEffect(newnPosition, 10)
doPlayerSay(cid, "Hiho VIP-e Player!!!", TALKTYPE_ORANGE_1)
end
else
doPlayerSay(cid, "Nie posiadasz vip access.", TALKTYPE_ORANGE_1)
end
return 1
end

Notka moderatorska:
Z?y dzia?, wi?c przenios?em temat. Uzupe?nij wz?r! //Xemorin
 

Rojson

Active User
Joined
May 14, 2008
Messages
96
Reaction score
1
Odp: vip acces

Witam
Ja Mia?em Taki Skrypt Na 8.1


w data>actions>scripts

vipdoor.lua

Code:
function onUse(cid, item, frompos, item2, topos)
vipstatus = getPlayerStorageValue(cid,1156)
stroge = 1156

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 Assassin Island 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 Assassin Island 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

w action.xml

Code:
<action uniqueid="5905" script="vipdoor.lua"/>

5906 - to id spr?buj da? taki p?omieniowi


A Teraz Iteim
w data>action>scripts> vipitem.lua

Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2141 then
if getPlayerLevel(cid) > 1 then
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid,22,"CONGRATULATIONS! You are now a Super Acces")
setPlayerStorageValue(cid, 1156, 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end


POzmieniaj Id i bd ?miga? ;]
 

Rojson

Active User
Joined
May 14, 2008
Messages
96
Reaction score
1
Odp: vip acces

Pokaz jak zmieni?e? i daj id itemu i ognia :}
 

Rikimaru

Active User
Joined
Sep 26, 2008
Messages
85
Reaction score
3
Odp: vip acces

nic nie zmieni?em ;d
vip door:
PHP:
function onUse(cid, item, frompos, item2, topos)
vipstatus = getPlayerStorageValue(cid,1156)
stroge = 1156
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 Assassin Island 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 Assassin Island 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

PHP:
<action uniqueid="5905" script="foucz/vipdoor.lua"/>

id ognia :

PHP:
5062
 

Rojson

Active User
Joined
May 14, 2008
Messages
96
Reaction score
1
Odp: vip acces

data>actions>scripts>Vipdoor.lua
Code:
function onUse(cid, item, frompos, item2, topos)
vipstatus = getPlayerStorageValue(cid,[color=red]1156[/color])
stroge = [color=red]1156[/color]
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 Assassin Island 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 Assassin Island 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
Tam Gdzie Czerwone Wpisz : "5062"
vipdoor.xml
Code:
<action uniqueid="[color=red]5905[/color]" script="foucz/vipdoor.lua"/>
Tam Gdzie Czerwone! Takie Uniqe Id daj w map editorze P?omieniowi!!
Vip Iteim :
data>actions>scripts> vipiteim.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == [color=red]2141[/color] then
if getPlayerLevel(cid) > 1 then
doSendAnimatedText(getPlayerPosition(cid), "Welcome!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid,22,"CONGRATULATIONS! You are now a Super Acces")
setPlayerStorageValue(cid, [color=blue]1156[/color], 1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,'You are not a donator.')
doRemoveItem(item.uid, 1)
end
else
end
return 1
end
Tam gdzie czerwone Wpisz Iteim id (itemek jaki ma s?u?y? za vip iteim;]
Tam Gdzie niebieskie wpisz : 5062


Teraz Powinno BY? Git;]
 

Rojson

Active User
Joined
May 14, 2008
Messages
96
Reaction score
1
Odp: vip acces

To najlepiej ustaw drzwi zamiast ognia ;] i bd po problemie;d
Niestety nie znam sie na win7
 
Status
Not open for further replies.
Top