IPB

Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
WoE warps
miseru
post Apr 22 2009, 11:39 PM
Post #1


eA Newbie
*

Group: eA Level 3 (Normal)
Posts: 21
Joined: 7-April 09
Member No.: 286,114



I don't really need help with scripting code itself, but I made a patch to emergency call to make a woe for babies only, which you can find in my signature along with the simple guide, but warps are just simple 1 liners, soo to add a check to warp I'll need to redo some warps into ontouch scripted npc with warp sprites.
The thing I don't know is simple (IMG:http://www.eathena.ws/board/style_emoticons/default/tongue.gif) I don't know soo much about WoE, I played RO long time ago, also I was only on 3 or 4 WoE and don't remember much:]. Sure I know how to take over a castle and stupid things like that, needed that to test my patch;P, but I really DON'T know which warps I need to change.

For example: if I go to the prontera castles, I need to change the warps in the maps that connect to a map where all the prontera castles are, OR the warps to enter each castle? Also when WOE starts, players that are inside the castles are warped outside, or they stay there? And also is there another skill(other than emergency call) that I would need to source-edit to block every way of summoning/warping inside the castle by adult characters while WoE is set for babies?

Hope I'll get some answers:P, althrough I don't really need help with the code, I need support to make some scripts, so only this part of the forum fits, at least as I see. >.<
Go to the top of the page
 
+Quote Post
~AnnieRuru~
post Apr 23 2009, 12:42 AM
Post #2


~Cute~Cute~Scripter~
Group Icon

Group: eA DB/Scripting Support Leader
Posts: 6,694
Joined: 28-August 06
From: your next door ~
Member No.: 185,312



the warp file is located at
eathena\npc\warps\guild\guildcastles.txt

1 line script only for a single warp
so if you want every warp portal to restrict it, yes has to edit EVERY ONE of them

and I believe nowarpto and nowarp mapflag, either 1 of them I don't remember which one
already restricted calling spouse or children/parents into castles
Go to the top of the page
 
+Quote Post
miseru
post Apr 23 2009, 02:06 AM
Post #3


eA Newbie
*

Group: eA Level 3 (Normal)
Posts: 21
Joined: 7-April 09
Member No.: 286,114



Well but actually the warps inside the castles wouldn't need any edit if I just check that on entrance. Anyone is more pro at playing RO than me, and any woe guides are just about needed clasess and their role soo I'm very unsure it that would be enough^_^.
I need just answers on that, which one is true when:
1. Players inside the castle when WOE starts:
- stay inside,
- are teleported outside.
(If they stay I'll just run one timer at the start to kick adults outside if woe is for babies only.)
2. The "territory of the WOE" is:
- just inside the castles,
- also at the map which have entrances to them.
(I need that soo I can check the less possible warps for optimization which is good and from my lazyness somewhat good also^^)
3. Is there an other skill than "Emergency Call" which lets ppl from outside to teleport inside the castles without using warps?
- yes,
- no.
(If there is, please let me know the name of it, I'll just source edit it to add baby woe check.)

(IMG:http://www.eathena.ws/board/style_emoticons/default/happy.gif) I hope that is clear enough but I really need clear answers on that 3 questions. I don't really need to do it, but I want to edit warps and add the files for ready to use for others along with my source patch. to make Woe for babies setable by simple script along with normal woe without anybody need to set this manually or restarting server. Somewhat setup and forget, like a normal WOE now.

Anyway thank you for replying, but about the map flags as I know how to set them, and saw that little folder in the config:], but do they take arguments for example to block only adults/babies and such? Aren't these two flags just block all warps? On eA wiki map flags is one of the unfinished parts:(, and after quick look for all results in source files for mapflag I'm unsure if they take any arguments, or maybe I understanded you wrong.

Aw, one more question, what are novice castles or something like that:] are they also part of WOE? Not sure if I need to change warps to them also as I'm not even know how which of the warps at novice castles are inside the castle and which outside.
For the time being I'll change only these warps:
CODE
//Al de Baran Guild Castles Map
//alde_gld,48,79,0 warp aldg01 1,1,aldeg_cas01,34,248
//alde_gld,95,253,0 warp aldg02 1,1,aldeg_cas02,88,163
//alde_gld,142,81,0 warp aldg03 1,1,aldeg_cas03,114,286
//alde_gld,243,242,0 warp aldg04 1,1,aldeg_cas04,149,17
//alde_gld,259,90,0 warp aldg05 1,1,aldeg_cas05,216,103

// Geffen Castles Map
//gef_fild13,112,269,0 warp gefg05 1,1,gefg_cas03,100,280
//gef_fild13,139,240,0 warp gefg06 1,1,gefg_cas03,125,250
//gef_fild13,150,54,0 warp gefg01 1,1,gefg_cas01,34,140
//gef_fild13,196,281,0 warp gefg08 1,1,gefg_cas04,24,149
//gef_fild13,210,75,0 warp gefg02 1,1,gefg_cas01,95,178
//gef_fild13,256,57,0 warp gefg09 1,1,gefg_cas05,11,134
//gef_fild13,305,83,0 warp gefg09-1 1,1,gefg_cas05,99,200
//gef_fild13,308,244,0 warp gefg03 1,1,gefg_cas02,70,143
//gef_fild13,77,284,0 warp gefg04 1,1,gefg_cas03,60,286
//gef_fild13,83,185,0 warp gefg07 1,1,gefg_cas03,89,159

//Payon Guild Castles Map
//pay_gld,121,238,0 warp payg01 1,1,payg_cas01,214,48
//pay_gld,291,116,0 warp payg02 1,1,payg_cas02,272,57
//pay_gld,321,293,0 warp payg03 1,1,payg_cas03,226,26
//pay_gld,140,156,0 warp payg04 1,1,payg_cas04,252,271
//pay_gld,204,269,0 warp payg05 3,1,payg_cas05,62,225

//Prontera Castles Map
//prt_gld,107,240,0 warp prtg04-1 1,1,prtg_cas04,86,13
//prt_gld,129,65,0 warp prtg01 1,1,prtg_cas01,99,32
//prt_gld,153,141,0 warp prtg03-1 1,1,prtg_cas03,168,12
//prt_gld,212,240,0 warp prtg05-1 1,1,prtg_cas05,17,235
//prt_gld,240,124,0 warp prtg02-1 1,1,prtg_cas02,43,229

// Schwaltzvalt Castle Maps
//sch_gld,293,90,0 warp schg102 1,1,schg_cas01,119,8
//sch_gld,288,258,0 warp schg202 1,1,schg_cas02,339,78
//sch_gld,97,183,0 warp schg302 1,1,schg_cas03,337,330
//sch_gld,137,98,0 warp schg402 1,1,schg_cas04,119,8
//sch_gld,65,315,0 warp schg502 1,1,schg_cas05,119,8

// Arunafeltz Castle Maps
//aru_gld,155,274,0 warp arug102 1,1,arug_cas01,275,93
//aru_gld,78,47,0 warp arug202 1,1,arug_cas02,139,31
//aru_gld,68,150,0 warp arug302 1,1,arug_cas03,141,45
//aru_gld,289,347,0 warp arug402 1,1,arug_cas04,141,45
//aru_gld,287,107,0 warp arug502 1,1,arug_cas05,141,45


As only them connects castle maps with castles. I'll be fast^_^. But I still hope to get answers on my questions.

This post has been edited by Nymphicus: Apr 23 2009, 10:45 PM
Reason for edit: [ codebox ]
Go to the top of the page
 
+Quote Post
~AnnieRuru~
post Apr 23 2009, 08:46 AM
Post #4


~Cute~Cute~Scripter~
Group Icon

Group: eA DB/Scripting Support Leader
Posts: 6,694
Joined: 28-August 06
From: your next door ~
Member No.: 185,312



QUOTE
1. Players inside the castle when WOE starts:
- stay inside,
- are teleported outside.

CODE
// War of Emperium has started.
OnAgitStart:
    if (strnpcinfo(0) == "Gld_Agit_Manager") end;
    MapRespawnGuildID strnpcinfo(2),GetCastleData(strnpcinfo(2),1),2;
    GvgOn strnpcinfo(2);


QUOTE
2. The "territory of the WOE" is:
- just inside the castles,
- also at the map which have entrances to them.
look at eathena\conf\mapflags\gvg.txt and eathena\db\castles_db.txt


QUOTE
3. Is there an other skill than "Emergency Call" which lets ppl from outside to teleport inside the castles without using warps?
- yes,
- no.
answer on previous post

QUOTE
I want to edit warps and add the files for ready to use for others along with my source patch. to make Woe for babies setable by simple script along with normal woe without anybody need to set this manually or restarting server.
there has been a lot topics shown how to make warp portals only babies can enter ....

QUOTE
Aw, one more question, what are novice castles or something like that:] are they also part of WOE? Not sure if I need to change warps to them also as I'm not even know how which of the warps at novice castles are inside the castle and which outside.
yes it start along with agitstart; command
baby woe and normal woe ( not woe:se ) are start together
if you want to seperate their starting time you have to use some brain,
maybe the woe setter 3 made by GMXeon can show you a way to do it

QUOTE
For the time being I'll change only these warps:
I not helping on this,
maybe other members can

seriously you should make a habit use search button,
read more eathena\doc\script_commands.txt
and get a test server to try it out for your self

because sometimes every member can get different results due different revisions and different branch
and also some members using ultimate woe setter rather than official woe script
the result can be different from anyone of us

and finally, I would also like to talk as much as you did on your previous post
your post is long and is hard to read
and you just repeating your question again like my reply did not help you at all
if that is, then I am out from this topic
maybe some other members who is willingly to answer your serious killing of question
patiently enough to help you
Go to the top of the page
 
+Quote Post
miseru
post Apr 23 2009, 11:10 AM
Post #5


eA Newbie
*

Group: eA Level 3 (Normal)
Posts: 21
Joined: 7-April 09
Member No.: 286,114



Heh thank you for replying and it cleared some things for me but you didn't understand me at all >.< or didn't wanted to. Anyway I needed to clear things about RO not how to make such scripts... I made it all already, one of the main reasons I wanna do easy to use fully ready to go baby woe is that ppl post for wanting that, not becouse I wanna make it for myself. >.< I wasn't sure if players are sended outside the castle when woe start, well they were but not the guild members, and soo I writed a script to kick them out also.
I really appreciate to get a fishing rod not just a fish, but while comparing to that, I wasn't even hungry just wanted to know what fishes swim in the pond:]. Writing all that taked you probably more time than just simple answering some unrelated to scripting questions. >.< Well to not be only words, and as you love scripts but hate answering simple questions, you can be a good critic for my script:]. Maybe only woe-start-adult kicker, as the warps are something to laugh of and I didn't even needed to think while copy/pasting them :]. Maybe even you'll find a better way, as I just strighforwardly writed my concept.

CODE
prontera,145,225,0<TAB>script<TAB>babywoestart<TAB>-1,{
OnAgitStart:
query_sql "SELECT `BabyWOE` FROM `woe`", $@babywoe;
if ($@babywoe == 1)
{
query_sql "SELECT COUNT(`account_id`) FROM `char` WHERE `online` = 1 AND `guild_id` > 0 AND (`class` < 4023 OR `class` > 4045) ORDER BY `account_id`", $@count;
set $@counter,($@count/128)+1;
for (set $@i,0; $@i < $@counter; set $@i,$@i+1)
{
set $@limit,$@i*128;
query_sql "SELECT COUNT(`account_id`) FROM `char` WHERE `online` = 1 AND `guild_id` > 0 AND (`class` < 4023 OR `class` > 4045) ORDER BY `account_id` ASC LIMIT "+$@limit+", 128", $@count;
query_sql "SELECT `account_id`, `name` FROM `char` WHERE `online` = 1 AND `guild_id` > 0 AND (`class` < 4023 OR `class` > 4045) ORDER BY `account_id` ASC LIMIT "+$@limit+", 128", $@account_id, $@name$;
for (set $@j,0; $@j < $@count; set $@j,$@j+1)
{
attachrid $@account_id[$@j];
getmapxy @currentmap$,@currentX,@currentY,0,$@name$;
if (compare(@currentmap$,"g_cas0")) warp "SavePoint", 0, 0;
}
}
query_sql "UPDATE `char` SET `last_map` = `save_map`, `last_x` = `save_x`, `last_y` =`save_y` WHERE `online` = 0 AND `last_map` LIKE '%g_cas0%' AND (`class` < 4023 OR `class` > 4045)";
detachrid;
announce "This special WoE is for babies only!",0;
}
end;
}


I'm really not a person that needs a help in adding a simple check to warp... heh from that topic I really wanted ONLY some simple answers realated to RO I couldn't find on the net nor on this forum(yeah I used search but for things I wanted, not for the things I get an answers...). Also the code is already tested just pasting it as I feel bad when somebody missunderstand my questions and that's a little proof that I'm not here becouse I can't find a search button how to modify warps(damn I would find that even in my own posts if I would get sick and forget everything). >.<

This post has been edited by Nymphicus: Apr 23 2009, 10:47 PM
Reason for edit: [ codebox ]
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 1st November 2014 - 02:13 AM
Bridged By IpbWiki: Integration Of Invision Power Board and MediaWiki © GlobalSoft