What's new

Telport Scroll jak w diablo 2

Status
Not open for further replies.

Zeratul

User
Joined
Feb 7, 2009
Messages
22
Reaction score
0
Autor Skryptu:NauR
W folderze data/actions/scripts tworzymy folder telescroll.lua a w nim
--::::::::::::::::::::::::::::::::::::::::::::::::::::--
--:::::::::::Teleport Scroll like Diablo II:::::::::::--
--::::::::::By NauR with Ernie's little help::::::::::--
--::::::::::::::::::::::::::::::::::::::::::::::::::::--

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

local town = getPlayerTown(cid)
local temple = getTownTemplePosition(town)
local pos = getCreaturePosition(cid)
if getPlayerSkullType(cid) == 0 and getCreatureCondition(cid, CONDITION_INFIGHT) == 0 then
if getPlayerStorageValue(cid, 10000) < 1 then
setPlayerStorageValue(cid,10001,pos.x)
setPlayerStorageValue(cid,10002,pos.y)
setPlayerStorageValue(cid,10003,pos.z)
setPlayerStorageValue(cid,10000,1)
doTeleportThing(cid,temple)
doSendMagicEffect(temple, 10)
elseif getPlayerStorageValue(cid, 10000) == 1 then
local oldpos = {x = getPlayerStorageValue(cid, 10001),y = getPlayerStorageValue(cid, 10002),z = getPlayerStorageValue(cid, 10003)}
doTeleportThing(cid,oldpos)
doSendMagicEffect(oldpos, 10)
setPlayerStorageValue(cid,10000,0)
doRemoveItem(item.uid,1)
end
else
doPlayerSendCancel(cid,"You can't use this scroll if you've in fight or get skull")
end
end

Nast?pnie w actions.xml

<!-- NauR teleport Scroll -->
<action itemid="7492" script="telescroll.lua"/>


I mamy tp scrolla:)
 

JackQ

User
Joined
May 8, 2009
Messages
22
Reaction score
3
Odp: Telport Scroll jak w diablo 2

Nie sprawdza?em... i nie bede ^^.
Og?lnie to pomys? dobry, ale czy nie ?atwiej by?oby ustawi? pozycje przed temple??
I z g?owy ca?e zamieszanie ze skull itp.
 

Vermillion

New User
Joined
Jun 30, 2009
Messages
9
Reaction score
1
Odp: Telport Scroll jak w diablo 2

Zapowiada sie Elegancko Ale czy dziala tez na 8.4..??
 

Xayan

Senior User
Joined
Jul 4, 2009
Messages
2,608
Reaction score
390
Age
28
Odp: Telport Scroll jak w diablo 2

Zapowiada sie Elegancko Ale czy dziala tez na 8.4..??

Zasada jest taka: je?li co? chodzi na Tibii 7.92, dzia?a na wszystkich wy?szych. Je?li co? chodzi na 8.1, dzia?a na wy?szych, itd.

@Top:
Skrypcik najs i s?iti ;)

A serio: przydatny, dobrze, ?e sprawdza, czy gracz ma skulla, jednak mog?e? u?ywa? magicznego klawisza TAB :) 7/10
 
Status
Not open for further replies.
Top