What's new

Problem napisy nad tp(EFEKT)

Status
Not open for further replies.

Kuston

Active User
Joined
Aug 8, 2009
Messages
106
Reaction score
0
Witam mam problem z efektem nad tp kolor napis?w si? zmienia lecz efekt si? nie zmienia ;/
Moj skrypt:
Code:
 local pozycje = {
 {pos = {x=996, y=1002, z=7}, tekst = "Trainers"},
 {pos = {x=1001, y=1001, z=7}, tekst = "Tp Room 1"},
 {pos = {x=1002, y=1001, z=7}, tekst = "Tp Room 2"},
 {pos = {x=1003, y=999, z=7}, tekst = "Quest 1"},
 {pos = {x=1003, y=998, z=7}, tekst = "Quest 2"},
 {pos = {x=1038, y=995, z=7}, tekst = "Trainers"},
 {pos = {x=995, y=994, z=7}, tekst = "Temple"},
 {pos = {x=995, y=1001, z=7}, tekst = "House"},
 {pos = {x=995, y=999, z=7}, tekst = "House 2"},
 {pos = {x=995, y=996, z=7}, tekst = "Npc's"},
 {pos = {x=1028, y=995, z=7}, tekst = "Temple"} }

local kolor = TEXTCOLOR_RED   -- Jakim kolorem jest dany napis
local efekt = {odEfektu = 1, doEfektu=66}  -- Jaki efekt sie wyswietla
		function onThink(interval, lastExecution)
			local kolor = TEXTCOLOR_YELLOW   -- Jakim kolorem jest dany napis
			for i=1, #pozycje do
				doSendMagicEffect(pozycje[i].pos,4)
				doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
			end
			return true
			end


Prosz? o pomoc !

Notka moderatorska:
Skrypty umieszczaj w znacznikach code //Xemorin
 

szymek24s

Active User
Joined
Oct 24, 2008
Messages
79
Reaction score
9
Odp: Problem napisy nad tp(EFEKT)

Spr?buj to:
PHP:
local pozycje = {
{pos = {x=996, y=1002, z=7}, tekst = "Trainers"},
{pos = {x=1001, y=1001, z=7}, tekst = "Tp Room 1"},
{pos = {x=1002, y=1001, z=7}, tekst = "Tp Room 2"},
{pos = {x=1003, y=999, z=7}, tekst = "Quest 1"},
{pos = {x=1003, y=998, z=7}, tekst = "Quest 2"},
{pos = {x=1038, y=995, z=7}, tekst = "Trainers"},
{pos = {x=995, y=994, z=7}, tekst = "Temple"},
{pos = {x=995, y=1001, z=7}, tekst = "House"},
{pos = {x=995, y=999, z=7}, tekst = "House 2"},
{pos = {x=995, y=996, z=7}, tekst = "Npc's"},
{pos = {x=1028, y=995, z=7}, tekst = "Temple"} }

local kolor = TEXTCOLOR_RED -- Jakim kolorem jest dany napis
local efekt = {odEfektu = 1, doEfektu=66} -- Jaki efekt sie wyswietla
function onThink(interval, lastExecution)
local kolor = TEXTCOLOR_YELLOW -- Jakim kolorem jest dany napis
for i=1, #pozycje do
doSendMagicEffect(pozycje[i].pos,efekt)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
end
return true
end
 

Kuston

Active User
Joined
Aug 8, 2009
Messages
106
Reaction score
0
Odp: Problem napisy nad tp(EFEKT)

O dzia?a dzieki !!!!
Ej m?g? by? da? to samo tylko zrobi? ?eby ten efekt to by?o takie jak by ???te k??ko ? :D

jak da? reputa ? bo ja nowy :p Dam ci :)
 
Joined
Jan 6, 2011
Messages
552
Reaction score
65
Odp: Problem napisy nad tp(EFEKT)

Code:
local pozycje = { 
	{pos = {x=996, y=1002, z=7}, tekst = "Trainers"}, 
	{pos = {x=1001, y=1001, z=7}, tekst = "Tp Room 1"}, 
	{pos = {x=1002, y=1001, z=7}, tekst = "Tp Room 2"}, 
	{pos = {x=1003, y=999, z=7}, tekst = "Quest 1"}, 
	{pos = {x=1003, y=998, z=7}, tekst = "Quest 2"}, 
	{pos = {x=1038, y=995, z=7}, tekst = "Trainers"}, 
	{pos = {x=995, y=994, z=7}, tekst = "Temple"}, 
	{pos = {x=995, y=1001, z=7}, tekst = "House"}, 
	{pos = {x=995, y=999, z=7}, tekst = "House 2"}, 
	{pos = {x=995, y=996, z=7}, tekst = "Npc's"}, 
	{pos = {x=1028, y=995, z=7}, tekst = "Temple"} 
	} 
	
local config = {
	kolor = TEXTCOLOR_YELLOW, -- kolor napisu
	efekt = CONST_ME_HOLYDAMAGE, -- efekt
	}

function onThink(interval, lastExecution) 
	for i, v in pairs(pozycje) do
		doSendMagicEffect(v.pos, config.efekt)
		doSendAnimatedText(v.pos, v.tekst, config.kolor) 
	end
	return true 
end
 

szymek24s

Active User
Joined
Oct 24, 2008
Messages
79
Reaction score
9
Odp: Problem napisy nad tp(EFEKT)

Albo to:
PHP:
local pozycje = {
{pos = {x=996, y=1002, z=7}, tekst = "Trainers"},
{pos = {x=1001, y=1001, z=7}, tekst = "Tp Room 1"},
{pos = {x=1002, y=1001, z=7}, tekst = "Tp Room 2"},
{pos = {x=1003, y=999, z=7}, tekst = "Quest 1"},
{pos = {x=1003, y=998, z=7}, tekst = "Quest 2"},
{pos = {x=1038, y=995, z=7}, tekst = "Trainers"},
{pos = {x=995, y=994, z=7}, tekst = "Temple"},
{pos = {x=995, y=1001, z=7}, tekst = "House"},
{pos = {x=995, y=999, z=7}, tekst = "House 2"},
{pos = {x=995, y=996, z=7}, tekst = "Npc's"},
{pos = {x=1028, y=995, z=7}, tekst = "Temple"} }

local kolor = TEXTCOLOR_RED -- Jakim kolorem jest dany napis
function onThink(interval, lastExecution)
local kolor = TEXTCOLOR_YELLOW -- Jakim kolorem jest dany napis
for i=1, #pozycje do
doSendMagicEffect(pozycje[i].pos,39)
doSendAnimatedText(pozycje[i].pos,pozycje[i].tekst,kolor)
end
return true
end

Reputa nie mo?esz jeszcze, bo masz za ma?o post?w.
 

Kuston

Active User
Joined
Aug 8, 2009
Messages
106
Reaction score
0
Odp: Problem napisy nad tp(EFEKT)

Masz reputa ;)
 
Status
Not open for further replies.
Top