Naprowadzanie questow ^^ Czyli daje wspolrzedne, a ty mnie jakos naprowadzasz Dam ci repka jak napiszesz.
heh, popatrz na exive ;\
exiva pokazujaca przez 10 sekund ile kratek do celu, tak jak w elfie, heh.
Naprowadzanie questow ^^ Czyli daje wspolrzedne, a ty mnie jakos naprowadzasz Dam ci repka jak napiszesz.
Wbuduj w TFS'a printFPS hooka to Ci porobie fajne bajerki =\
Zrób ss na forum..
Real Tibia tasks ;] Piotrek się podjął ale nie kończy ;]
Elemental spheres quest? Jak dobrze pamiętam.
Czekam na twoje postaranie sie
jeśli zabijesz wszystkie 1k demonów i dasz use na ten item dostajesz nagrode - 1k expa + 1cc, a item znika.You have killed XXX/1000 demons.
<talkaction words="!gps" event="script" value="gps.lua"/>
function onSay(cid, words, param, channel)
if(channel == CHANNEL_DEFAULT) then
local tmpParam = string.explode(param, ",")
if(#tmpParam == 3) then
for i = 1, 3 do
doCreatureSetStorage(cid, 12000 + i, tmpParam[i])
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[GPS] Done.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[GPS] Usage !gps x, y, z")
end
end
return true
end
registerCreatureEvent(cid, "gps")
<event type="think" name="gps" event="script" value="gps.lua"/>
local dirs = {
[NORTH] = "UP",
[EAST] = "RIGHT",
[SOUTH] = "DOWN",
[WEST] = "LEFT",
[SOUTHWEST] = "<V",
[SOUTHEAST] = "V>",
[NORTHWEST] = "<^",
[NORTHEAST] = "^>"
}
function onThink(cid, interval)
for i = 1, 3 do
if(getCreatureStorage(cid, 12000 + i) < 1) then
return true
end
end
local selfPos = getCreaturePosition(cid)
doSendAnimatedText(selfPos, dirs[getDirectionTo(selfPos, {x = getCreatureStorage(cid, 12001), y = getCreatureStorage(cid, 12002), z = getCreatureStorage(cid, 12003)})], TEXTCOLOR_WHITE)
return true
end
@Paxton:
/data/talkactions/talkactions.xml
Code:<talkaction words="!gps" event="script" value="gps.lua"/>
/data/talkactions/scripts/gps.lua
Code:function onSay(cid, words, param, channel) if(channel == CHANNEL_DEFAULT) then local tmpParam = string.explode(param, ",") if(#tmpParam == 3) then for i = 1, 3 do doCreatureSetStorage(cid, 12000 + i, tmpParam[i]) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[GPS] Done.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[GPS] Usage !gps x, y, z") end end return true end
/data/creaturescripts/scripts/login.lua
Code:registerCreatureEvent(cid, "gps")
/data/creaturescripts/creaturescripts.xml
Code:<event type="think" name="gps" event="script" value="gps.lua"/>
/data/creaturescripts/scripts/gps.lua
Code:local dirs = { [NORTH] = "UP", [EAST] = "RIGHT", [SOUTH] = "DOWN", [WEST] = "LEFT", [SOUTHWEST] = "<V", [SOUTHEAST] = "V>", [NORTHWEST] = "<^", [NORTHEAST] = "^>" } function onThink(cid, interval) for i = 1, 3 do if(getCreatureStorage(cid, 12000 + i) < 1) then return true end end local selfPos = getCreaturePosition(cid) doSendAnimatedText(selfPos, dirs[getDirectionTo(selfPos, {x = getCreatureStorage(cid, 12001), y = getCreatureStorage(cid, 12002), z = getCreatureStorage(cid, 12003)})], TEXTCOLOR_WHITE) return true end
Powinno dzialac ^_^
Hmm, może zrób NPC'ka, który by oprowadzał po mieście..
Przymusowe follow gracza na NPC + NPC zatrzymuje się przy ważnych pozycjach (sklepy, depot, temple) i opowiada o nich?
Pomyśle a twoj skrypt juz testuje i zaraz Ci go podam :] eace:
function onKill(cid, target)
local killCount = getPlayerStorageValue(cid, 6512)
if(killCount > 999)then return true end
setPlayerStorageValue(cid, 6512, killCount + 1)
return true
end
function onUse(cid, item)
local killCount = getPlayerStorageValue(cid, 6512)
if(killCount < 1000)then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Jestes nob!")
return true
end
doPlayerAddExp(cid, 1000)
doPlayerAddItem(cid, 2160, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "gz")
setPlayerStorageValue(cid, 6512, 0)
return true
end