Hello
Im using Tfs 0.3.6 and I want to have pvpe in my server.
Prob: 1
1. When im using pvp-e people are dropping items even when they use aol, but they gain experiance from players.
2. When i use regual Pvp players aint dropping items, but they aint getting experiance from players.
3. I want to have Pvp-E and also prevent the loss of items when using aol.
Prob2: Teleport scroll
As you can see in this script, if player got PZ he will not be able to use this TP scroll.
But the problem is, even if im white skulled and trying to kill somone i can just rightclick on the scroll and be teleported in the next 10 secounds.
(I want the script to work out, so if you are pz, you cant be teleported.)
Script
Prob 3: Exura gran mas res/Exura sio"playername
1. This 2 spells are for druids, and its right, but the problem is when your standing in protection zone, you shuld not be able to execute this spell. I got it working on my 0.2 but in 0.3.6 i cant get it work.
Thanks for reading
If you don't understand my problems, then tell me
Ps: Sorry for my english..:$
Yours
Dalal£
Im using Tfs 0.3.6 and I want to have pvpe in my server.
Prob: 1
1. When im using pvp-e people are dropping items even when they use aol, but they gain experiance from players.
2. When i use regual Pvp players aint dropping items, but they aint getting experiance from players.
3. I want to have Pvp-E and also prevent the loss of items when using aol.
Prob2: Teleport scroll
As you can see in this script, if player got PZ he will not be able to use this TP scroll.
But the problem is, even if im white skulled and trying to kill somone i can just rightclick on the scroll and be teleported in the next 10 secounds.
(I want the script to work out, so if you are pz, you cant be teleported.)
Script
Code:
-- By Colandus LEAVE CREDITS
local countdown = 10
local name = "Roxor Temple"
local action = {}
local function teleport(p)
local cid, count = unpack(p)
if(isPlayer(cid)) then
local cancelled = not action[cid]
local playerPos = getCreaturePosition(cid)
if(not cancelled) then
if(getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
doPlayerSendTextMessage(cid, 21, "Teleport cancelled because of being in a fight!")
cancelled = true
elseif(count > 0) then
doCreatureSay(cid, "Teleporting in " .. count .. " seconds.", TALKTYPE_ORANGE_1)
doSendAnimatedText(playerPos, "Teleport", TEXTCOLOR_RED)
doSendMagicEffect(playerPos, CONST_ME_FIREATTACK)
addEvent(teleport, 1000, {cid, count - 1})
else
doTeleportThing(cid, getPlayerMasterPos(cid))
doPlayerSendTextMessage(cid, 21, "Teleported to the " .. name .. ".")
doSendMagicEffect(playerPos, CONST_ME_ASSASSIN)
local playerPos = getCreaturePosition(cid)
doSendMagicEffect(playerPos, CONST_ME_FIREATTACK)
doSendMagicEffect(playerPos, CONST_ME_FIREAREA)
action[cid] = false
end
end
if(cancelled) then
doSendAnimatedText(playerPos, "Cancelled", TEXTCOLOR_RED)
action[cid] = false
end
end
end
function onUse(cid, item, ppos, frompos, item2, topos)
if(getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot use a teleport scroll when you are in a fight.")
elseif(action[cid]) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have cancelled the teleport.")
action[cid] = false
return TRUE
elseif(isExhausted(cid, 9143, countdown * 4) == 1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "The power of this scroll is too strong to be executed this fast.")
else
action[cid] = true
teleport({cid, countdown})
setExhaust(cid, 9143)
end
if(action[cid] == false) then
doSendMagicEffect(frompos, CONST_ME_POFF)
end
return TRUE
end
Prob 3: Exura gran mas res/Exura sio"playername
1. This 2 spells are for druids, and its right, but the problem is when your standing in protection zone, you shuld not be able to execute this spell. I got it working on my 0.2 but in 0.3.6 i cant get it work.
Thanks for reading
If you don't understand my problems, then tell me
Ps: Sorry for my english..:$
Yours
Dalal£