PDA

View Full Version : [Share] Scroll's of Escape To Town


nowak2006
15.06.2006, 12:24
Hi guys,
Another small share... here is 20 scrolls of escape.
* orc_village
* silenos_village
* talking_island
* elven_village
* dark_elven_village
* dwarven_village
* gludin
* gludio
* dion
* floran
* giran
* hardin
* heine
* oren
* ivory_tower
* hunter_village
* aden
* rune
* goddard
* ketra_orc_village

http://rapidshare.de/files/23117148/Nowak_Scrolls_Of_Escape.rar.html

Somebody knows how these scrolls are used in official and how much them cost? Thanks!

Sundh
15.06.2006, 12:35
on retail you buy them with item from gatekeeeper. cant remember the name of the items that you use. but you gain them tru the class change quest etc. can give you some info about it asap. anyway nice share . Might come in handy for some ppl.

Alexandros
15.06.2006, 12:35
Nice m8. Thnx :)

HF
15.06.2006, 12:56
Your teleport_scoll ai very simple and no as official. Need have check for chaotic. You'll teleport chaotic players to center town? Descent of the Chaotic to Peace Towns! :)

And my small add-on for your work

Change AI for GK
class clavier : teleporter_multi_list
property_define_begin
telposlist_begin Position
{"The Town of Dion"; 15671; 142994; -2696; 8100; 2 }
{"Oren Castle Town"; 83011; 53207; -1488; 11000; 4 }
{"Hunters Village"; 117088; 76931; -2688; 9400; 0 }
{"Giran Harbor"; 47935; 186810; -3480; 6300; 0 }
{"Dragon Valley"; 122824; 110836; -3720; 6400; 0 }
{"Hardins Private Academy"; 105918; 109759; -3192; 5300; 0 }
{"Heine"; 111455; 219400; -3544; 9200; 6 }
{"Patriots Necropolis"; -25472; 77728; -3440; 15500; 0 }
{"Ascetics Necropolis"; -56064; 78720; -3008; 18600; 0 }
{"Saints Necropolis"; 79296; 209584; -3704; 9800; 0 }
{"Catacomb of Dark Omens"; -22480; 13872; -3168; 20400; 0 }
telposlist_end
telposlist_begin Position1
{"Monster Derby Track"; 13045; 181660; -3576; 3500; 2 }
telposlist_end
property_define_end
class_end

add multisell (as retail)
MultiSell_begin [ssq_teleport_scrolls] 156
selllist={
{{[scroll_of_escape_to_talking_island];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_elven_village];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_dark_elven_village];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_orc_village];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_dwarven_village];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_gludin];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_gludio];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_dion];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_floran];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_giran];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_hardin];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_heine];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_oren];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_ivory_tower];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_hunter_village];1};{{[dimension_diamond];8}}};
{{[scroll_of_escape_to_aden];1};{{[dimension_diamond];8}}}}
MultiSell_end

change html dialog for GK
<html><head><body>
Gatekeeper Clarissa:


We Gatekeepers use the will of the Gods to open the doors to time and space and teleport others. Which door would you like to open?


<a action="bypass -h teleport_request">Go to another village.</a>


<a action="bypass -h multisell?id=156">Exchange with the Dimension Diamond</a>


<a action="link gatekeeper_noblesse.htm">[Noblesse Only]teleport</a>


<a action="bypass -h menu_select?ask=-8&reply=1">Move to Monster Derby Track. (Free of Charge)</a>


<a action="bypass -h talk_select">Quest</a>
</body></html>

Seven
15.06.2006, 13:24
Neat, you may want to consider adding some Siege checks, if you make these scrolls easy to obtain though.

nowak2006
15.06.2006, 13:59
Thanks HF.
Another question: how players obtain dimension_diamond?

Sdw
15.06.2006, 14:31
class summon_tp_aden : default_npc
parameter_define_begin
int x 148112
int y 30439
int z -2420
parameter_define_end
handler 13 // CREATED
variable_begin
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

shift_sp 1
push_const 38015
push_const 100
func_call 28 // func[AddTimerEx]
shift_sp -2
shift_sp -1
shift_sp 1
func_call 116 // func[Castle_IsUnderSiege]
push_reg_sp
fetch_i
branch_false L86000000
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i
push_const 707
func_call 44 // func[ShowSystemMessage]
shift_sp -2
shift_sp -1
jump L86000001
L86000000
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i //karma
push_const 412
add
fetch_i
push_const 0
greater
branch_false L86000002
jmp L86000001
L86000002
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i
push_parameter x
push_parameter y
push_parameter z
func_call 46 // func[InstantTeleport]
shift_sp -4
shift_sp -1
L86000001
handler_end

handler 12 // TIMER_FIRED_EX
variable_begin
"timer_id"
"myself"
"_choiceN"
"_code"
"_from_choice"
variable_end

push_event // timer_id
push_const 176
add
fetch_i
push_const 38015
equal
branch_false L858993429
L858993430
shift_sp 1
func_call 175 // func[Despawn]
shift_sp -1
L858993429
handler_end

class_end

It's pretty simple, but in case that someone need an example.

zcold
15.06.2006, 14:40
Fixed:
- chaotic players (players with karma) can't teleport to towns;
- players can't teleport to towns, while town under siege;
need test (and somebody, plz, re-share good nasc!)

// Scroll's of Escape
// by Nowak(c) 2006

class default_npc
{
}

class summon_escape: default_npc
{
parameter:
int x = 0;
int y = 0;
int z = 0;
int castle = 0;
string fnYouAreChaotic = "tcm.htm";

handler:
EventHandler CREATED()
{
if(myself.master.karma > 0)
{
ShowPage(myself.master, fnYouAreChaotic);
Despawn();
}
else if(castle>0 && Castle_IsUnderSiege2(castle))
{
ShowSystemMessage(myself.master, 707); //You cannot teleport to a village that is in a siege.
Despawn();
}
else
{
AddTimerEx(39999, 100);
InstantTeleport(myself.master, x, y, z);
}
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if (timer_id == 39999)
Despawn();
}
}

class summon_escape_aden : summon_escape
{
parameter:
int x = 146871;
int y = 25783;
int z = -2008;
int castle = 5;
}

class summon_escape_giran : summon_escape
{
parameter:
int x = 83314;
int y = 148012;
int z = -3400;
int castle = 3;
}

class summon_escape_orc_village : summon_escape
{
parameter:
int x = -45220;
int y = -112508;
int z = -240;
}

class summon_escape_talking_island : summon_escape
{
parameter:
int x = -84141;
int y = 244623;
int z = -3728;
}

class summon_escape_elven_village : summon_escape
{
parameter:
int x = 43666;
int y = 51539;
int z = -2952;
}

class summon_escape_dark_elven_village : summon_escape
{
parameter:
int x = 9709;
int y = 15566;
int z = -4568;
}

class summon_escape_dwarven_village : summon_escape
{
parameter:
int x = 115120;
int y = -178224;
int z = -880;
}

class summon_escape_gludin : summon_escape
{
parameter:
int x = -80826;
int y = 149775;
int z = -3040;
}

class summon_escape_gludio : summon_escape
{
parameter:
int x = -12787;
int y = 122779;
int z = -3112;
int castle = 1;
}

class summon_escape_dion : summon_escape
{

parameter:
int x = 15671;
int y = 142994;
int z = -2696;
int castle = 2;
}

class summon_escape_oren : summon_escape
{
parameter:
int x = 82910;
int y = 53270;
int z = -1480;
int castle = 4;
}

class summon_escape_ivory_tower : summon_escape
{
parameter:
int x = 85391;
int y = 16228;
int z = -3672;
}

class summon_escape_hunter_village : summon_escape
{
parameter:
int x = 117156;
int y = 76878;
int z = -2688;
}

class summon_escape_floran_village : summon_escape
{
parameter:
int x = 15227;
int y = 161866;
int z = -3608;
}

class summon_escape_hardin : summon_escape
{
parameter:
int x = 101570;
int y = 102897;
int z = -3480;
}

class summon_escape_heine : summon_escape
{
parameter:
int x = 111399;
int y = 220876;
int z = -3544;
int castle = 6;
}

class summon_escape_rune : summon_escape
{
parameter:
int x = 43623;
int y = -47944;
int z = -760;
int castle = 8;
}

class summon_escape_goddard : summon_escape
{
parameter:
int x = 147709;
int y = -55626;
int z = -2744;
int castle = 7;
}

class summon_escape_ketra_orc_village : summon_escape
{
parameter:
int x = 149817;
int y = -80053;
int z = -5608;
}

class summon_escape_varka_silenos_village : summon_escape
{
parameter:
int x = 107929;
int y = -52248;
int z = -2408;
}

zcold
15.06.2006, 14:43
shift_sp 1
func_call 116 // func[Castle_IsUnderSiege]
push_reg_sp
fetch_i
branch_false L86000000
shift_sp 1
push_event // myself
push_const 28
add
fetch_i // master
push_const 2404
add
fetch_i
push_const 707
func_call 44 // func[ShowSystemMessage]
shift_sp -2
shift_sp -1


It's pretty simple, but in case that someone need an example.
I don't think we can use Castle_IsUnderSiege - because this check NPC's castle. Must use Castle_IsUnderSiege2 with number of castle.

Sdw
15.06.2006, 15:01
Well, if you add the npc to the castledata it works. It's how I've make it back then, that's all ^^

mantrastic
15.06.2006, 15:04
nice scrolls , i was thinking to make them , lovely work , and tnx HF too

HF
15.06.2006, 17:03
Well, if you add the npc to the castledata it works. It's how I've make it back then, that's all ^^it's no right. GK from another towns no exist in all towns, but can check siege status and show message

HF
15.06.2006, 17:53
Fixed:
- chaotic players (players with karma) can't teleport to towns;
- players can't teleport to towns, while town under siege;
need test (and somebody, plz, re-share good nasc!)

// Scroll's of Escape
// by Nowak(c) 2006
...i lissen what scrolls teleport all and chaotic too (i mean normal time without siege). And teleport sure to points as in setting.txt - chaotic to one points, good players to another.

WebB
15.06.2006, 18:22
nice, tnx

DJEERY
15.06.2006, 19:46
Good, tnx :)

Sdw
15.06.2006, 20:15
Well, if you add the npc to the castledata it works. It's how I've make it back then, that's all ^^it's no right. GK from another towns no exist in all towns, but can check siege status and show message
Maybe I've misunderstand you but read the whole thing please, what I'm saying is right.
If you add npc that teleport in castledata (e.g tp_aden npc to aden castle), you can use the Castle_IsUnderSiege function. It's 100% sure. It's not the more beautiful thing to do, but it works.
GK isn't working the same way I'm telling.

nowak2006
15.06.2006, 20:44
Thanks zcold.. i will try as soom as possible!
I think i will enable teleport chaotic players to floran village. ^^

zcold
16.06.2006, 18:55
i lissen what scrolls teleport all and chaotic too (i mean normal time without siege). And teleport sure to points as in setting.txt - chaotic to one points, good players to another.
If you'll give correct coordinates to every chaotic-point - will be fixed ;) I'm to lazy to find them myself :)))
<rus>
Насколько я понимаю - плееры с кармой телепортятся как по обычному SOE? Тут врядли получится это сделать - все сделано при помощи вспомогательной NPC. Единственное что можно сделать - добавить точки телепортации для игроков с кармой. Если дашь координаты - исправлю.
</rus>

Seven
17.06.2006, 00:32
The Castle_IsUnderSiege2(int castleID) zcold provided did the trick for me, and Retail or not i don't think Chaotic/Red players should be allowed to teleport to just any town. So if retail allows it i find it to be a mistake on their part. If you must have it, just define chaox, chaoy, chaoz for each summon and you'll win.

HF
17.06.2006, 07:07
<rus>
Насколько я понимаю - плееры с кармой телепортятся как по обычному SOE? Тут врядли получится это сделать - все сделано при помощи вспомогательной NPC. Единственное что можно сделать - добавить точки телепортации для игроков с кармой. Если дашь координаты - исправлю.
</rus>:) teleport points in setting.txt ;)

HF
17.06.2006, 11:01
problem with it:

ShowSystemMessage(myself.master, 707); //You cannot teleport to a village that is in a siege.

Lineage II client show error about incorrect system message. How fix it?

Iron0
20.06.2006, 07:41
Thanks HF.
Another question: how players obtain dimension_diamond?

Players obtain those in dimension rift parties and you also get 8 dimension diamonds when completing 1st quest of your 2nd class transfer and 16 diamonds when completing 2nd quest of 2nd class transfer. 3rd quest doesn't give diamons.