• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Rajd effekt

Erazma

Banned User
Joined
Sep 3, 2012
Messages
265
Reaction score
4
Siema może mi ktoś powiedzieć jak zrobić żeby był widoczny efekt teleportu? taki jak tu na obrazku gdy pojawia sie rajd potworow..?

0188002222442591.jpg
 
albo jak robisz rajdy globaleventami daj doSendMagicEffect bla bla


albo zrób poprostu w SOURCE by tam przy spawnowaniu potwora wysyłało teleport, wgl na rl tibii chyba jest, że zawsze jak się tworzy monster to pojawia się teleport (pomijając większość summonów i niektóre spawny)
 
Seminari dzięki za dobrą rade ;p hm a do czego służy plik data/raids/lib? ??? mozna tu dodac taki kod na wysyłanie effektu teleportu ? Po co wg ten plik jak nic tam nie ma tak samo w actions

a co do globalevent to mam ten system gesiora co pokazuje rajdy i wywoluje je z globalevent i nie wiem a;e tp chyba jest cos tutaj

local raidID = math.random(#raids);
dbHandle("INSERT INTO `raids`(`raid`, `time`) VALUES (".. raidID ..", "..os.time()..");");
executeRaid(raids[raidID]);
raidsToday = raidsToday + 1;

tylko to troche dziwne bo jesli naweyt dodam tu efekt to przeciez nie zadziala jedyne dobre wyjscie to source

- - - Updated - - -

if(creature == this)
{
//We just spawned lets look around to see who is there.
if(isSummon())
isMasterInRange = canSee(getMaster()->getPosition());

updateTargetList();
updateIdleStatus();
}
else
onCreatureEnter(const_cast<Creature*>(creature));
}

mozna doi tego jakas linie dopisac zeby dzialalo?
 
a spróbuj w pliku xml danego rajdu dodac obok spawnowania potworów coś takiego jak

effect="10"
ale niewiem, strzelam, że coś takiego jest
albo coś pokombinować, najlepiej to zobacz jak wygląda raid w source
 
Code:
		if(tmpStrValue == "warning")
			m_messageType = MSG_STATUS_WARNING;
		else if(tmpStrValue == "event")
			m_messageType = MSG_EVENT_ADVANCE;
		else if(tmpStrValue == "default")
			m_messageType = MSG_EVENT_DEFAULT;
		else if(tmpStrValue == "description")
			m_messageType = MSG_INFO_DESCR;
		else if(tmpStrValue == "status")
			m_messageType = MSG_STATUS_SMALL;
		else if(tmpStrValue == "blue")
			m_messageType = MSG_STATUS_CONSOLE_BLUE;
		else if(tmpStrValue == "red")
			m_messageType = MSG_STATUS_CONSOLE_RED;


RaidEvent* event;
if(!xmlStrcmp(eventNode->name, (const xmlChar*)"announce"))
event = new AnnounceEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"effect"))
event = new EffectEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"itemspawn"))
event = new ItemSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"singlespawn"))
event = new SingleSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"areaspawn"))
event = new AreaSpawnEvent(this, ref);
else if(!xmlStrcmp(eventNode->name, (const xmlChar*)"script"))
event = new ScriptEvent(this, ref);
else
{


zajrzałem do rajdu to mi sie przyda xD
announce to czas czyli effect to effekt hmmm
 
No ten co jest w temacie.

own3ed


#temat


z example.xml :


Code:
<?xml version="1.0" encoding="UTF-8"?>
<raid>
	<singlespawn delay="10100" name="Rat" x="95" y="117" z="7"/>
	<singlespawn delay="10200" name="Rat" x="95" y="117" z="7"/>
	<singlespawn delay="10300" name="Rat" x="95" y="117" z="7"/>
	<singlespawn delay="20100" name="Cave Rat" ref="yes" x="95" y="117" z="7"/>
	<effect delay="24000" name="bigclouds" x="95" y="117" z="7"/>
	<itemspawn delay="25000" id="2464" x="95" y="117" z="7"/>
</raid>

- - - Updated - - -

okey mam pytanie o co chodzi z parametrem "ref" ? XD
 
Back
Top