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

[x.x][Skrypty] Zam?wienia

Status
Zamknięty.
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Niestety npc kt?ry mia? wymienia? item 2345 za promocje nie dzia?a ( tzn jak m?wie do niego 'hi' to nic nie odp ) wg mnie poprostu npc pod z?y OTS
mam wersje 7.6 Mazurski 6.6.7.
Prosze oto inny npc mo?e da sie go przerobic zeby zamiast sprzedawac pacc go wymienia? za item o id 2345?

focus = 0
talk_start = 0
target = 0
following = false
attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Dowidzenia.')
focus = 0
talk_start = 0
end
end


function onCreatureTurn(creature)

end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not
string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
msg = string.lower(msg)

if ((string.find(msg, '(%a*)hi(%a*)')
or string.find(msg, '(%a*)siema(%a*)')
or string.find(msg, '(%a*)czesc(%a*)')
or string.find(msg, '(%a*)cze(%a*)')
or string.find(msg, '(%a*)yo(%a*)')
or string.find(msg, '(%a*)elo(%a*)'))
and (focus == 0)) and getDistanceToCreature(cid) < 4 then

rsay = math.random(1,4)
if rsay == 1 then says = 'Waazzuup'
elseif rsay == 2 then says = 'Siema'
elseif rsay == 3 then says = 'Czesc'
elseif rsay == 4 then says = 'Witam'
end



selfSay('Siemanko ' .. creatureGetName(cid) .. 'Gratulacje Wykonales Quest oto twoja nagroda!')
focus = cid
talk_start = os.clock()

elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('' .. creatureGetName(cid) .. '! Siemanko ' .. creatureGetName(cid) .. 'Gratulacje Wykonales Quest oto twoja nagroda!')
selfSay('/premmy ' .. creatureGetName(cid))
selfSay('/promote ' .. creatureGetName(cid))
elseif focus == cid then
talk_start = os.clock()

if msgcontains(msg, 'promotionGeNeX') or msgcontains(msg, 'promote') then
if isPromoted(cid) then
selfSay('Juz masz Promotion.')
talk_state = 0
elseif getPlayerLevel(creatureGetName(cid)) < 10 then
selfSay('Wybacz potrzeba ci 10 poziom !')
talk_state = 0
elseif not isPremium(cid) then
selfSay('Nie masz Premium Accont wiec nie mozesz miec Promotion!')
talk_state = 0
else
selfSay('Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
talk_state = 1
end

elseif msgcontains(msg, 'niechajgwiazdkaspadnie') or msgcontains(msg, 'pgf4f54y') then
selfSay('Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
talk_state = 2

elseif talk_state == 1 then
if msgcontains(msg, 'yes') or msgcontains(msg, 'tak') then
if pay(cid,2000) then
selfSay('/premmy ' .. creatureGetName(cid))
selfSay('/promote ' .. creatureGetName(cid))
else
selfSay('Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
end
end
talk_state = 0

elseif talk_state == 2 then
if msgcontains(msg, '3wdfyyyyyrretryertyds') then
if pay(cid,10000) then
selfSay('/c ' .. creatureGetName(cid))
selfSay('Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
else
selfSay('Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
end
end
talk_state = 0

elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Narazie ' .. creatureGetName(cid) .. ' . Siemanko ' .. creatureGetName(cid) .. 'Aby zdobyc pacc i promocje musisz wykonac quest na 200 lvl u NPC ! Powodzonka !')
focus = 0
talk_start = 0
end
end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Nastepny prosze.')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Tylko kup pacc !')
focus = 0
end
end
if focus == 0 then
cx, cy, cz = selfGetPosition()
randmove = math.random(1,20)
if randmove == 1 then
nx = cx + 1
end
if randmove == 2 then
nx = cx - 1
end
if randmove == 3 then
ny = cy + 1
end
if randmove == 4 then
ny = cy - 1
end
if randmove >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end
end
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

hmmm zrob mi skrypt svargrond arena pod 8.31
pozycje itd sam ustawie ;p
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

hmmm zrob mi skrypt svargrond arena pod 8.31
pozycje itd sam ustawie ;p
Hmm... TAKI SKRYPT JU? BY?, WI?C KUR*A WYPIERDA*AJ! A POZYCJE TO JA PRZECIE? WYJ??BYM W KOSMOSU, NIE?

Pozdro,
Gelio
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

skrypt : potions
tibia : 8.31
Witam potrzebuje skrypt na great spirit potion zeby dawal mana jak i hp i sie nie konczyl.... co? takiego ::reatHealthPot = 7591
local greatManaPot = 7590
local strongHealthPot = 7588
local strongManaPot = 7589
local healthPot = 7618
local manaPot = 7620
local manaPot = 8472
function onUse(cid, item, frompos, item2, topos)
if(item.itemid == healthPot) then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 370, 530, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
elseif(item.itemid == manaPot) then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 380, 450, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
elseif(item.itemid == strongHealthPot) then
if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 or getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
if getPlayerLevel(cid) > 50 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 550, 850, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
else
doPlayerSendTextMessage(cid, 21, "Your level is too low.")
end
else
doPlayerSendTextMessage(cid, 21, "You do not have the required vocation.")
end
elseif(item.itemid == strongManaPot) then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
if getPlayerLevel(cid) > 50 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 6150, 7250, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
else
doPlayerSendTextMessage(cid, 21, "Your level is too low.")
end
else
doPlayerSendTextMessage(cid, 21, "You do not have the required vocation.")
end
elseif(item.itemid == greatHealthPot) then
if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
if getPlayerLevel(cid) > 80 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatHealth(0, cid, COMBAT_HEALING, 1050, 1650, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
else
doPlayerSendTextMessage(cid, 21, "Your level is too low.")
end
else
doPlayerSendTextMessage(cid, 21, "You do not have the required vocation.")
end
elseif(item.itemid == greatManaPot) then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 then
if getPlayerLevel(cid) > 80 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 1250, 1350, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
else
doPlayerSendTextMessage(cid, 21, "Your level is too low.")
end
else
doPlayerSendTextMessage(cid, 21, "You do not have the required vocation.")
end
elseif(item.itemid == greatSpiritPot) then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 5 or getPlayerVocation(cid) == 6 or getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
if getPlayerLevel(cid) > 50 then
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
if(doTargetCombatMana(0, cid, 6150, 7250, CONST_ME_MAGIC_BLUE) == LUA_ERROR) then
return FALSE
end
else
doPlayerSendTextMessage(cid, 21, "Your level is too low.")
end
else
doPlayerSendTextMessage(cid, 21, "You do not have the required vocation.")
end
end
return TRUE
end
Poco mi to dajesz? Masz nowy skrypt:
Kod:
function onUse(cid, item, frompos, item2, topos)
local hp = {min = 1000, max = 2000}
local mana = {min = 500, max = 1000}
local forVoc = {3,7}

local ileMany = math.random(mana.min,mana.max)
local ileHp = math.random(hp.min,hp.max)
if (getPlayerVocation(cid) == forVoc[i]) or (getPlayerVocation(cid) == forVoc[2]) then
doPlayerAddMana(cid,ileMany)
doPlayerAddHealth(cid,ileHp)
doSendAnimatedText(getPlayerPosition(cid), "Aaaah...", TEXTCOLOR_ORANGE)
else
doPlayerSendCancel(cid,"You don\'t have required vocation")
end
end

Pozdro,
Gelio
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Witam prosz? o 3 Scrypty oraz o pomoc w 1-ym. Wszystkie s? do servera TFS oraz na wersje 8.31.
1.
Rodzaj: Actions.
O czym ma by? skrypt:
Chodzi mi oto ?e w ?wi?tyni ma by? statua kt?ra po klikni?ciu na ni? doda many :200 hp:300 { ma by? exhaused 3 sec. }.
2.
Rodzaj: Actions [ to mam tylko o pomoc prosz? ]
mam taki scrypt. jest on do sklepu. i jak klikam na dany item o danym U. ID. to daje mi bp of sd, ale w runce jest 1 strza?. a nie wiem gdzie wpisa? ?eby robi?o po 10.
PHP:
function onUse(cid, item, frompos, item2, topos)
local Cost = 2500
local RuneId = 2268
if doPlayerRemoveMoney(cid, Cost) == 1 then
backpack = doPlayerAddItem(cid, 2003, 1)
for i = 1, 20 do
doAddContainerItem(backpack, RuneId, 1)
end
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return 1
end
3.
Hmm tu nie wiem jaki rodzaj, ale chyba TALKACTION[TRANSFORMATION]
Opis: (trwa to 120 sekund) 25 lvl Royal Palladyn po wypowiedzeniu s??w !Shooter traci 10 souli oraz 300 many, dostaje na czas czaru 20 Distance. oraz profesje Ranger.
4. Rodzaj: Patrz pkt. 3
Opis: (trwa to 120 sekund) 50 lvl Royal Palladyn po wypowiedzeniu s??w !Power_Shooter traci 25 souli oraz 510 many, dostaje na czas czaru 35 Distance. oraz profesje Power Ranger.


EDIT: 2 ju? zrobilem teraz prosz? o reszt?.
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

ja prosze o skrypte spells
dla sork,druid,el druiduw , m sork
chodzi mi o taki czar jak exori tylko ze wali ze smierci jest od 10 lvl i scioga na 10 lvl 50 hp bierze 20 many
tibia 7.6
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Tibia 8.1
Che skrypt na jakis fajny czar dla palla
ma uderzac na tyle kratek co exevo gran mas vis i z podobna sila tylko zeby troche mniej mniej many zabieral :P
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj: actions
Wersja tibii: 8.10XML
Skrypt ma dawa? nie?miertelno?? ma dzia?a? w 2 opcjach 1 opcja to stale czyli na zawsze a 2 opcja to us?waj?ca si? automatycznie po 10 godz po za?o?eniu
Szczeg??y:1 opcja ma to by?
orsh_brain.gif
2.Opcja
heart_pillow.gif
zak?adany w miejsce Head<----to umiem zrobic :p
Prosz? o szybkie rozpatrzenie :P jak b?dzie dzia?a? a nie w?tpi? to si? nie b?j o Reputacj?...:p
Prosz? o zrobienie obydwu opcji :p

POZDRO BlackDeD1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rodzaj: actions
Wersja tibii: 8.10XML
Maj? to by? 3 runy

1Runa:
-ID:2274
-Runa ma dawa? +15 all skills

2Runa:
-ID:2275
-Runa ma dawa? premium account 7 dni

3Runa:
-ID:2276
-Runa ma dawa? promotion

To by by?o na tyle prosz? o szybkie rozpatrzenie




Pozdro BlackDeD1:D
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Typ. Action
tibia-8.10
zrobisz mi super mr ze jak uzyje wyskacza effect 29 pisze super mana i dodaje 2k many?

i prosze o zrobienie skryptu
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

attackType = ATTACK_POISON
animationEffect = NM_ANI_NONE

hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = RED
offensive = false
drawblood = false

CreatureIllusionObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}


time = 240 --time in seconds
ret = doTargetMagic(cid, centerpos, CreatureIllusionObject:ordered())


if(ret) then
speed = getSpeed(cid)
time = 240 --in seconds
addspeed = (speed*1.0)

changeSpeed(cid, addspeed, time)
end


if(ret) then
changeOutfit(cid, time, 6)
end


return ret
end

M?g?by? przerobi? ten skrypt, ?eby dodawa? 300 HP i 400 MANY ??
Klient:7.6 XML
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

tibia:8.22 TFS
Skrypt:Posag dodaje magic lev
Opis:Po kliknieciu na posag dodaje on 10 m lev dla tylko druida i sorca (MS i ED)
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

ja mam dla ciebie bardzo latwy skrypt zrob mi skrzynke w ktorej jest ze 3 przedmioty action TFs 8.31
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Rodzaj: runes
Wersja tibii: 8.1 :rolleyes:

1.Poprosz? skrypt na run? kt?r? jak u?yje to teleportuje mnie w wybrane miejsce w zasi?gu widoku <Tak jak w Wodbo "Zenzoken">;)

2. Mia?e? kilka post?w wcze?niej da? Edita dla postu bo kto? poprosi? o transform zwi?kszeniem HP i MANY ze zwi?kszeniem hit?w itd.
(chodzi?o mu ?e ka?da profesja m?wi "transform" i zmienia go w inny outfit):p

3. Jak wy??czy? opcje Set Outfits???? :D
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Witam
Potrzebuje skryptu na zlecenie zabicia w danej ilosci potworow jak ma dzialac
no wienc tak gracz wbija np 15 lvl dostaje do bp list z napisem
(musisz pokonac 50 wolfow a dostaniesz 5k i 50expa)
gracz zabija potworki i dostaje nagrody
wersia 8.1
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Siema.
Mo?esz zrobi? Npc, pod tibie 8.31 ?eby sprzedawa? wszystkie klucze jakie s??

Czekam na odpowiedz ;)
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

witam poszukuje skryptu zeby npc sprzedawal runy w bp pod 8.31
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Plik promocjnaruna.lua
Kod:
function onUse(cid, item, frompos, item2, topos)
	if item2.itemid == 1 then
		if item.type == 0 then
			doPlayerSendCancel(cid, "Nie mo?esz u?y?.")
		else
			if item2.uid == cid then
				doChangeTypeItem(item.uid, 0)
				if item.type == 7 then
					doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
					doSendMagicEffect(topos, 12)
					doPlayerSay(cid, "I HAVE PROMOTION", 1)
	return doCombat(cid, combat, var)
		end
	end
	return 1
end

linijka
Kod:
<action itemid="2276" script="promocyjnaruna.lua" />

Powinno dzia?a? ale nie jestem pewien bo nie mam gdzie przetestowa?
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

tibia : 8.11
rodzaj : exevo mas san
kpw ocb :] no nie boce sobie i chce zeby mi lal potworki z exevo mas san:D
pzdro i plz o pomoc ;)
 
Ostatnia edycja:
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

witam poszukuje skryptu zeby npc sprzedawal runy w bp pod 8.31
Za pomoca trade with backpack
 
Odp: Skrypty na zam?wienie.

Odp: Skrypty na zam?wienie.

Typ:Npc
Funkcja:Sprzedaje i skupuje ka?d? bro? po normalnych cenach
Tibia:8.11
Npc z silnika:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addBuyableItem({'great health potion', 'ghp'}, 7591, 250, 'great health potion')
shopModule:addBuyableItem({'strong health potion', 'shp'}, 7588, 110, 'strong health potion')
shopModule:addBuyableItem({'health potion', 'hp'}, 7618, 50, 'health potion')
shopModule:addBuyableItem({'great mana potion', 'gmp'}, 7590, 120, 'great mana potion')
shopModule:addBuyableItem({'strong mana potion', 'smp'}, 7589, 80, 'strong mana potion')
shopModule:addBuyableItem({'mana potion', 'mp'}, 7620, 50, 'mana potion')
shopModule:addBuyableItem({'light wand', 'lightwand'}, 2163, 500, 'magic light wand')
shopModule:addBuyableItem({'mana fluid', 'manafluid'}, 2006, 55, 7, 'mana fluid')
shopModule:addBuyableItem({'life fluid', 'lifefluid'}, 2006, 50, 10, 'life fluid')
shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 2311, 300, 20, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 2304, 500, 20, 'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 2313, 800, 20, 'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 2273, 700, 20, 'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 2268, 1000, 20, 'sudden death rune')
shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 'blank rune')

npcHandler:addModule(FocusModule:new())
2.
Typ:NPC
Funkcja:Wp?aty i wyp?aty kasy oraz balance
Tibia:8.11
Z g?ry thx
 
Status
Zamknięty.
Do góry