What's new

[x.x][Skrypty] Zam?wienia

Status
Not open for further replies.

Piotr00

User
Joined
Aug 28, 2008
Messages
20
Reaction score
2
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: (chyba) actions
Wersja tibii: 8.4
Chodzi mi o to ?eby by?o wida? po ile si? leczy np. z exura
 

Xart Irok

Senior User
Joined
Sep 7, 2008
Messages
2,925
Reaction score
419
Age
32
Odp: [x.x][Skrypty] Zam?wienia

Powinno dzia?a?:
Code:
function onUse(cid, item, frompos, item2, topos)
if(item2.itemid == 8753 and (item2.actionid == 0 or item2.actionid == 100)) then
	doTransformItem(item2.uid,8754)
	doSetItemActionId(item2.uid,101)
	addEvent(doTransformItem,20000,item2.uid,8755)
	addEvent(doSetItemActionId,20000,item2.uid,100)
elseif(item2.itemid == 8755 and item2.actionid == 100) then
	doTransformItem(item2.uid,8756)
	doSetItemActionId(item2.uid,101)
	addEvent(doTransformItem,20000,item2.uid,8757)
	addEvent(doSetItemActionId,20000,item2.uid,100)
elseif(item2.itemid == 8757 and item2.actionid == 100) then
	doTransformItem(item2.uid,8758)
	doSetItemActionId(item2.uid,101)
	addEvent(doTransformItem,20000,item2.uid,8759)
	addEvent(doSetItemActionId,20000,item2.uid,100)
elseif(item2.itemid == 8759 and item2.actionid == 100) then
	doRemoveItem(item2.uid,1)
	addEvent(doWall,20000,topos)
end
return TRUE
end
function doWall(topos)
local item = doCreateItem(8753,1,topos)
doSetItemActionId(item,100)
return TRUE
end
zmienia na paczatku na wall z energia ale cos sie stalo bo wywala bald w koncoli
PHP:
[14/05/2009 13:15:47] Lua Script Error: [Action Interface] 
[14/05/2009 13:15:47] in a timer event called from: 
[14/05/2009 13:15:47] data/actions/scripts/shadow.lua:onUse

[14/05/2009 13:15:47] luaDoSetItemActionId(). Item not found

[14/05/2009 13:15:47] Lua Script Error: [Action Interface] 
[14/05/2009 13:15:47] in a timer event called from: 
[14/05/2009 13:15:47] data/actions/scripts/shadow.lua:onUse

[14/05/2009 13:15:47] luaDoTransformItem(). Item not found

jak cos to dodaj jakos funkcje zeby dodwal storagevalue

i to ma isc tak ze najpier na ogoien sie zaminia potem energie po tych 20 sekundach mozna kolejny raz na to kliknoc

jak bys mog dopisz do tego i to misje
 
Last edited:

AoW2

Active User
Joined
Dec 26, 2008
Messages
131
Reaction score
8
Odp: [x.x][Skrypty] Zam?wienia

Gelio a da si? napisa? skrypta na takie co?? Wiesz chodi mi oten efekt co 3 sekundy ;]
 

kloc

Advanced User
Joined
May 13, 2008
Messages
172
Reaction score
13
Age
11
Odp: [x.x][Skrypty] Zam?wienia

Prosi?bym o skrypt
wersja tibii :8.4 TFS
Potrzebuje cz??ci questu a mianowicie:

Jest du?y pok?j z 2 parami ?cian (kt?re znikaj?) i 1 d?wigni? po ?rodku i tylko jedna ?ciana jest a 2 nie ma i jak przeci?gniesz d?wigni? to ta 1 si? zamyka (druga wci?? zamkni?ta) i zaczynaj? pojawia? si? po 10 potwork?w po zabiciu tych 10 pojawiaj? si? nast?pne 10 i tak 4 razy(jak si? nie da to zr?b ?e w odst?pach czasowych).I jak wszystko zabijesz to otwiera si? ?ciana u g?ry (Ta u do?u wci?? zamkni?ta).

Z g?ry dzi?ki a za pomoc oczywi?cie reput:)
 

Lucellek

User
Joined
Jan 26, 2009
Messages
23
Reaction score
2
Odp: [x.x][Skrypty] Zam?wienia

Gelio: Czy da sie zrobic drzwi przez kt?re moga przechodzic tylko np. druidzi lub sorcowie ??
 

Piotr00

User
Joined
Aug 28, 2008
Messages
20
Reaction score
2
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: (chyba) actions
Wersja tibii: 8.4
Chodzi mi o to ?eby by?o wida? po ile si? leczy np. z exura
Ponawiam. (mam darkness ots i nie mam tego w config.lua) jest jaki? spos?b na dodanie tej opcji?
 

Xart Irok

Senior User
Joined
Sep 7, 2008
Messages
2,925
Reaction score
419
Age
32
Odp: [x.x][Skrypty] Zam?wienia

@Xart Irok
Sprawdz? u siebie i zedytuje. A niby dlaczego storage value? To przecie? nie potrzebne. Wystarczy, ?e id i actionid itemu si? b?dzie zmienia?o.
na to gdy bede rozmaiwal z npc to ze by sprawdzil to storage value
i moja prozbe ze bys dopisal to misje druga w ten plik
 

Mirrith

New User
Joined
Apr 18, 2009
Messages
4
Reaction score
0
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: NPC
Wersja tibii: np. 7.6
O czym ma by? skrypt.
NPC ktory sprzedaje kilka czarow na raz
Szczeg??y, ew. screen je?eli to ma by? skrypt z rl

Code:
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('Good bye then.')
          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*)')) and (focus == 0)) and getDistanceToCreature(cid) < 4 then
 		if getPlayerVocation(cid) == 2 then
 			selfSay('Hello ' .. creatureGetName(cid) .. '! What spell do you want to learn?')
 			focus = cid
 			talk_start = os.clock()
 		else
 			selfSay('Sorry, I sell spells for druids.')
 		end

	elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
  		selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')

  	elseif focus == cid then
		talk_start = os.clock()

		if msgcontains(msg, 'light healing') then
  			learnSpell(cid,'exura',170)
		elseif msgcontains(msg, 'create food') then
  			learnSpell(cid,'exevo pan',150)
		elseif msgcontains(msg, 'force strike') then
  			learnSpell(cid,'exori mort',600)
 		elseif msgcontains(msg, 'heavy magic missle') then
  			learnSpell(cid,'adori gran',600)
 		elseif msgcontains(msg, 'energy strike') then
  			learnSpell(cid,'exori mort',800)
 		elseif msgcontains(msg, 'flame strike') then
  			learnSpell(cid,'exori flam',800)
 		elseif msgcontains(msg, 'magic shield') then
  			learnSpell(cid,'utamo vita',450)
 		elseif msgcontains(msg, 'intense healing rune') then
  			learnSpell(cid,'adura gran',600)
 		elseif msgcontains(msg, 'intense healing') then
  			learnSpell(cid,'exura gran',350)
 		elseif msgcontains(msg, 'heal friend') then
  			learnSpell(cid,'exura sio',800)
 		elseif msgcontains(msg, 'strong haste') then
  			learnSpell(cid,'utani gran hur',1300)
 		elseif msgcontains(msg, 'haste') then
  			learnSpell(cid,'utani hur',600)
 		elseif msgcontains(msg, 'great fireball') then
  			learnSpell(cid,'adori gran flam',1200)
 		elseif msgcontains(msg, 'ultimate healing rune') then
  			learnSpell(cid,'adura vita',1500)
 		elseif msgcontains(msg, 'ultimate healing') then
  			learnSpell(cid,'exura vita',1000)
 		elseif msgcontains(msg, 'explosion') then
  			learnSpell(cid,'adevo mas hur',1800)
 		elseif msgcontains(msg, 'mass healing') then
  			learnSpell(cid,'exevo gran mas res',2200)
 		elseif msgcontains(msg, 'poison storm') then
  			learnSpell(cid,'exevo gran mas pox',3400)
 		elseif msgcontains(msg, 'ultimate light') then
 			learnSpell(cid,'utevo vis lux',1600)
 		elseif msgcontains(msg, 'greater light') then
 			learnSpell(cid,'utevo gran lux',500)
 		elseif msgcontains(msg, 'light') then
 			learnSpell(cid,'utevo lux',100)
		elseif msgcontains(msg, 'invisible') then
 			learnSpell(cid,'utana vid',1000)
		elseif msgcontains(msg, 'summon') then
 			learnSpell(cid,'utevo res',2000)
		elseif msgcontains(msg, 'find person') then
 			learnSpell(cid,'exiva',80)
		elseif msgcontains(msg, 'magic rope') then
 			learnSpell(cid,'exani tera',200)

  		elseif string.find(msg, '(%a*)bye(%a*)')  and getDistanceToCreature(cid) < 4 then
  			selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
  			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('Next Please...')
  		end
  			focus = 0
  	end
 	if focus ~= 0 then
 		if getDistanceToCreature(focus) > 5 then
 			selfSay('Good bye then.')
 			focus = 0
 		end
 	end

Jest to NPC dla czarow z Druidami lecz on sprzedaje czary pojedynczo.

end
 

Miotacz Post?w

New User
Joined
May 12, 2008
Messages
9
Reaction score
0
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: actions chyba nie jestem pewien
Wersja tibii:. 8.1
Chodzi o pod?oge kt?ra summonuje potwory chcia?bym zrobic takie train monki na swoim otsie i jescze jeden taki ma?y :).Drzwi do pomieszczenia,?e jak kto? w pomieszczeniu jest to sie nieda wej?c i jest komunkat jakis ze kto? tam jest i sobie sam to zedytuje ten komunikat
jak wyjdzie dopiero mo?na wej?c
Ha to zrobisz ?? :D
 

Mondez

Advanced User
Joined
Sep 14, 2008
Messages
244
Reaction score
16
Odp: [x.x][Skrypty] Zam?wienia

Ciekawe niby co z?ama?em, ?enada -.- otrzyma?em 3 skrypty nie 4 wi?c nie kasowa? mi tego, bo 4 skryptu nei dosta?em i pisze pro?b? o inny ?? -,.-

Code:
[B]Rodzaj:[/B] Actions albo movements
[B]Wersja tibii:[/B] 8.40
[B]O czym ma by? skrypt :[/B]
D?wignia
je?eli na danych 4 pozycjach le?? rzeczy id 2466
to po naci?ni?ciu d?wigni (1495) spawnuj? si? 3 monstery na danej pos, d?wignia znika
Po zabiciu potwor?w d?wignia si? pojawia (o id 1946) po jej naci?ni?ciu 2 ?ciany na danym pos znikaj?.
P.S Chce taki jak tu, nie taki jak kloca

@@
Dobrze teraz ? ;|
 
Last edited:

Davu

New User
Joined
Apr 25, 2009
Messages
5
Reaction score
1
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: actions
Wersja tibii: np. 8.42
Premium doors

Szuka?em,znajdywa?em,nie dzia?a?o, sprawdza?em, nadal nie dzia?alo

Na 100% robi?em dobrze... Wada skryptu... (lub moja :p)

P.S
Niechce mostu, chcia?bym Door'sy
 

Lucellek

User
Joined
Jan 26, 2009
Messages
23
Reaction score
2
Odp: [x.x][Skrypty] Zam?wienia

[ ACTION IDS
Project Name
The Forgotten Server
Version
0.3.4
Codenamed
Crying Damson
License
GNU GPLv3
Forum

]
[ IDS
Level Tile
1000 + Required Level
Level Door
1000 + Required Level
Quest Reward
2000
]
To z tych drzwi co moga przechodzic tylko dane profesje np. druid...
Kaza?e? mi sprawdzic doc/ACTION_IDS i to wlasnie to, czy jest ta linijka ?? jesli nie to prosze napisz co mam dopisac.
 

Mondez

Advanced User
Joined
Sep 14, 2008
Messages
244
Reaction score
16
Odp: [x.x][Skrypty] Zam?wienia

Gdzie? kiedy? co? by?o ?e tp pojawia?o si? po zabiuciu potwora czy co?
No a mo?esz robi? bez znikania ? :/
 

Miotacz Post?w

New User
Joined
May 12, 2008
Messages
9
Reaction score
0
Odp: [x.x][Skrypty] Zam?wienia

Gelio znalaz?em ale chcia?em ?eby sie pojawia? potworek o look type 275 a nie umiem tego zedytowac prosze o pomoc czy te drzwi s? do zrobienia bo tam ich chyba niema :/
 

AoW2

Active User
Joined
Dec 26, 2008
Messages
131
Reaction score
8
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj:Actions (chyba)
wersja tibi:8.0
Funkcje:
Klikasz na przedmiot o id 2361 i dodaje ci 50000 hm i 50000 many

Z g?ry dzi?ks ;]

@Speeder
Czemu usuno?e? mojego posta?
 

Mondez

Advanced User
Joined
Sep 14, 2008
Messages
244
Reaction score
16
Odp: [x.x][Skrypty] Zam?wienia

Chyba nie zauwa?yle?, napisze jeszcze raz, bo chce bez znikania...

Rodzaj: Actions
Wersja tibii: 8.40
O czym ma by? skrypt :
D?wignia
je?eli na danych 4 pozycjach le?? rzeczy id 2466
to po naci?ni?ciu d?wigni (1495) spawnuj? si? 3 monstery na danej pos, po naci?ni?ciu 2 raz na d?wignie (1946) 2 ?ciany na danym pos znikaj?.

P.S da si? zrobi? skrypt ?e po naci?ni?ciu d?wigni pojawia si? d?wignia z UID x ??
 

AoW2

Active User
Joined
Dec 26, 2008
Messages
131
Reaction score
8
Odp: [x.x][Skrypty] Zam?wienia

DObra thx nie pomy?la?em o tym ;s
Dobra to teraz:
NPC
Tibia 8.0
name:Reborn
Piszesz "hi" "reborn" "yes" i zmienai ci profesje z 16 na 17 ;s

@edit
Poco taki teamt zrobi?e? bocie?
 
Last edited:

Fridek

Active User
Joined
May 1, 2009
Messages
80
Reaction score
2
Odp: [x.x][Skrypty] Zam?wienia

Witam!

Chcia?bym aby? wykona? dla mnie do?? skomplikowany skrypt. Postaram si? wyt?umaczy? to jak najdok?adniej.

Protok?? tibii 8.4
Actions

To jazda!

Gdy u?ywasz 'X' przedmiotu na przedmiocie 'Y' dodaje o 10% wi?cej Armor/Atak/Def ( w zale?no?ci od rodzaju przedmiotu ). I o ile si? da po przemianie przedmiotu pisz? na nim co? w stylu "Armor value increased by 10%". ( ale to ju? nie koniecznie )


Z g?ry dzi?kuj?,
Damian
 

Miotacz Post?w

New User
Joined
May 12, 2008
Messages
9
Reaction score
0
Odp: [x.x][Skrypty] Zam?wienia

Gelio chodzi?o mi oto zeby sie pojawia? potw?r Sea Serpent ma on looktype 275 bo ten skrypt raczej na nowsze tibie a ja chce zeby sie pojawial sea serpent jak wejde na pod?oge
 

junior108

User
Joined
Apr 22, 2009
Messages
33
Reaction score
1
Odp: [x.x][Skrypty] Zam?wienia

Rodzaj: Item & Vocation Xml
Wersja tibii: 8.4

Ja potrzebowalbym skrypt na second promotion + item daj?cy t? promocje(jakas runa... sam moge sobie j? edytowac)

Vocation: Epic Paladin, Epic Knight ... itp.
A do runy jakis efekt tez bys mogl dodac.


P.S Tak nawiasem mowiac odpocznij sobie ;) Ja moge poczekac, takze jak jakies nuuby sie czepiaja o skrypty przepuszcze ich. ;)
 
Status
Not open for further replies.
Top