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

Potrzebny Skrypt Na Pacc Door

Status
Zamknięty.

damianslu

Active User
Dołączył
Grudzień 15, 2009
Posty
80
Liczba reakcji
0
Tak jak w temacie potrzebuje skryptu na pacc door lub przej?cie dla pacc tak jak na rooku.
 
Odp: Potrzebny Skrypt Na Pacc Door

Witam, zrobi?em pacc brigde. Tylko, ?e w tym skrypcie jest zabierany jeden dzie? pacc.

Data/movements/paccbrigde.lua
PHP:
local p = 
{
    k = { x = 1000, y = 1000, z = 7}
}

function onStepIn(cid, item, position, fromPosition)
    if(getPlayerPremiumDays(cid) < 1) then
		doPlayerSendCancel(cid, "You must have premium.")
        doTeleportThing(cid, p.k)
    else
		return doPlayerSendCancel(cid, "Hello, on the island of premium.")
	end
end

data/movements/movements.xml
PHP:
<movevent type="StepIn" itemid="1423" event="function" value="paccbrigde.lua"/>
 
Odp: Potrzebny Skrypt Na Pacc Door

W movements/script stworz plik paccdoor.lua
Kod:
function onStepIn(cid, item, frompos, item2, topos) 
local playerPosition = getPlayerPosition(cid) 
local newPosition = {x=479, y=497, z=5}  
    if item.uid == 10300 and isPremium(cid) == TRUE then
        doSendMagicEffect(playerPosition, 2) 
        doTeleportThing(cid, newPosition) 
        doSendMagicEffect(newPosition, 10) 
else
doCreatureSay(cid, "You need to have a Premium Account to enter this area.", TALKTYPE_ORANGE_2)    
end
end

W Movements.xml wklej:
Kod:
 <movevent type="StepIn" uniqueid="10300" event="script" value="paccdoor.lua" />
Mysle ze pomoglem


Regards
Shadok
 
Status
Zamknięty.
Do góry