[RELEASE] Hurdle Race Map - Maze Map as Event!

07/14/2009 00:17 SoulNecturn#1
Ok seeing that many requests comming from this community expecting from Demons Online server to share little ...

So lets start with small steps :)

Today will present way to implement this Hurdle Maze Map into any server you run!

In attachment you will find:
- Server side files
- Client side files

and here DB inputs:



Here we inserting this map into DB:
Code:
delete from cq_map where id = 8979;

INSERT INTO `cq_map` (`id`, `name`, `describe_text`, `mapdoc`, `type`, `sort`, `owner_id`, `mapgroup`, `idxserver`, `weather`, `bgmusic`, `bgmusic_show`, `portal0_x`, `portal0_y`, `reborn_map`, `reborn_portal`, `res_lev`, `owner_type`, `link_map`, `link_x`, `link_y`, `del_flag`, `province_id`) VALUES
(8979, 'RaceMap', 'RaceMap', 8979, 3274178572, 0, 0, 0000, -1, 0000, 0000, 0000, 0204, 0409, 3000, 0000, 000, 000, 0000, 0000, 0000, 000, 0);
Here are all NPCs - 2 in this map (start and end line)
+ 1 main NPC to enter this map of course
Code:
delete from cq_npc where id = 99911;
delete from cq_npc where id = 99912;

INSERT INTO `cq_npc` VALUES 
('99911', '0', '0', 'TAKEMEBACK', '0001', '99880', '0', '0', '-1', '8979', '619', '591', '1990090', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '无', '0000', '00', '00', '0000', '01', '0000', '0000', '0000', '0000', '0000');
INSERT INTO `cq_npc` VALUES 
('99912', '0', '0', 'TAKEMEBACK', '0001', '99880', '0', '0', '-1', '8979', '617', '428', '1990090', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '无', '0000', '00', '00', '0000', '01', '0000', '0000', '0000', '0000', '0000');

delete from cq_npc where id >= 88791 and id <= 88791;

INSERT INTO `cq_npc` VALUES 
('88791', '0', '0', 'EventTelep', '0002', '88890', '0', '0', '-1', '1000', '0330', '0415', '6915085', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '无', '0000', '00', '00', '0000', '01', '0000', '0000', '0000', '0000', '0000');
Here actions and task so we will be able to use NPC's properly etc:
Code:
delete from cq_task where id >= 6915085 and id <= 6915085;
delete from cq_task where id >= 6991140 and id <= 6991140;

INSERT INTO `cq_task` VALUES 
('6915085', '6915085', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0'),
('6991140', '6991140', '0000', '', '', '0', '0', '999', '-100000', '100000', '0999', '0000', '0', '-1', '0');



delete from cq_action where id >= 6915085 and id <= 6915104;
delete from cq_action where id >= 6991140 and id <= 6991141;

INSERT INTO `cq_action` (`id`, `id_next`, `id_nextfail`, `type`, `data`, `param`) VALUES
(6915085, 6915100, 6915088, 0123, 0, '2009-06-11 22:00 2009-06-11 23:05'),

(6915088, 6915089, 0000, 0101, 0, 'SORRY!~PLEASE~COME~BACK~WHEN~EVENT~WILL~BE~OPEN!'),
(6915089, 5915105, 0000, 0101, 0, 'SEE~YA~LATER'),

(6915100, 6915101, 0000, 0101, 0, 'Hello!~''Today~"Hurdle~Race"~Event~is~open~for~everyone!'),
(6915101, 6915102, 0000, 0101, 0, 'If~You~want~to~participate~just~let~me~know~this!'),
(6915102, 6915103, 0000, 0101, 0, 'Remember~that~this~Event~could~have~additional~rules~set~by~Organizator!'),
(6915103, 6915104, 0000, 0102, 0, 'Take~me~to~the~"HURDLE~RACE"~Event~now. 6991140'),
(6915104, 4000034, 0000, 0102, 0, 'Nevermind. 0'),

(6991140, 0000, 6991141, 1107, 0, '8979 615 592'),
('6991141', '0000', '0000', '1003', '0', '8979 615 592');

THEN you just can decide when you want to have this map open by simply updating DB as you wishes:
Code:
UPDATE cq_action SET param = '2009-06-22 01:45 2009-06-22 02:00' where id = 6915085;
where "2009-06-22 01:45" is from when open and
"2009-06-22 02:00" till when its closed (so 2009-06-22 02:01 will be already impossible to enter anymore!)


Now small help to use it easy without plannig or restarting server etc ...

For example - you update DB with time chosen by you:

Code:
UPDATE cq_action SET param = '2009-07-14 00:00 2009-07-15 00:00' where id = 6915085;
and insdie game as a PM you just put:

/reloadaction 6915085
and done, server refreshed to new time of opening ;)


Additonally info where is START and where is FINISH line:

coords of start == 8979 596 589
coords of finish == 8979 600 428

So PM can use fast teleport:
/chgmap 8979 596 589
or
/chgmap 8979 600 428

---------------------

NOW Server and Client side part explanations:

1) CLIENT SIDE

In attachment I put all necessary files that will be required for this map!
There are INI and ANI files which you all must open - copy what is there and just put into your own files by pasting ;)
- GameMap
- NPC

Additionally copy files from map and puzzle map into your clients to be sure there are these maps ;)

2) SERVER SIDE
Here as well you all must copy Map and puzzle map files
and additionally whole content from GameMap.ini copy and paste to your own GameMap.ini file ;)

--------

Thats pretty all in this.

I hope this will help everyone to have pleasure from this MAZE ;)

Regards
07/14/2009 00:32 Necron33#2
thank you!
I've a small thing , how would the NPC manage the prizes for people - or manage which came first and which came second... - i noticed those functions are not there
07/14/2009 00:37 SoulNecturn#3
hehe :) well for this thing I have [EM] = Event Master appointed in game :)

This is 1st version of this map as event...

In my later updates it will contain:
- other maze maps (so players will start on 1st map and will even be finishing on last one :)
- system will be chosing automatically only 3 winners and will be rewarding with prizes

So in other words this is first stage of this event.
But when I upgrade it I will update it here to ;)
07/14/2009 00:44 Necron33#4
Exactly my point - system chooses automatically the winners and give them the chance to get prizes - study the Dragon cave to know how it is done ^^
07/14/2009 01:02 connorbacon99#5
thank you soul haha very good job
07/14/2009 09:54 PhoenyxDemon#6
Finally, a release from demons-online =] tyvm.

Regards,
Phoenyx
07/14/2009 22:50 funhacker#7
@soulerman
I couldn't reply when I said thankyou so I will now. It's good you are releasing and I don't wanna sound selfish etc but I suggest you advert your server in your releases it's best thing you can do you are giving to the comunity whilst looking after your own. On top of that only those that know what they are doing will be able to remove the adverts (only ones that deserve to) and all the leechers will be stuck advertising your server.
07/15/2009 00:32 SoulNecturn#8
Quote:
Originally Posted by funhacker View Post
@soulerman
I couldn't reply when I said thankyou so I will now. It's good you are releasing and I don't wanna sound selfish etc but I suggest you advert your server in your releases it's best thing you can do you are giving to the comunity whilst looking after your own. On top of that only those that know what they are doing will be able to remove the adverts (only ones that deserve to) and all the leechers will be stuck advertising your server.
True ...
but in some releases like this I am ok without adverts :)

Anyway I believe many more releases will be done by me here ... but like always ... all its matter of time ... so for now I only posted few ones today because was able to prepare it fast ...so just did in this way ...

Anyway Funhacker question to you...

I would be eager to release some things later but I am wondering how to make autopatcher that will update itemtype.dat with things I wish to put there (like you did in unicorn mounts release)... in other words .. Any backup in this one - for later releases?? ;)

Regards
07/15/2009 00:49 hio77#9
Quote:
Originally Posted by Soulerman View Post
Anyway Funhacker question to you...

I would be eager to release some things later but I am wondering how to make autopatcher that will update itemtype.dat with things I wish to put there (like you did in unicorn mounts release)... in other words .. Any backup in this one - for later releases?? ;)

Regards
i would love to know this too :D
07/15/2009 01:49 Necron33#10
Quote:
Originally Posted by Soulerman View Post
True ...
but in some releases like this I am ok without adverts :)

Anyway I believe many more releases will be done by me here ... but like always ... all its matter of time ... so for now I only posted few ones today because was able to prepare it fast ...so just did in this way ...

Anyway Funhacker question to you...

I would be eager to release some things later but I am wondering how to make autopatcher that will update itemtype.dat with things I wish to put there (like you did in unicorn mounts release)... in other words .. Any backup in this one - for later releases?? ;)

Regards
I'm not funhacker, however , so you want an itemtype auto updater that EDITS itemtype not replace it?
07/15/2009 01:54 SoulNecturn#11
Quote:
Originally Posted by Necron33 View Post
I'm not funhacker, however , so you want an itemtype auto updater that EDITS itemtype not replace it?
well for me its not necessary but if such a thing will be released and I would find it easy to use(read = fast way) in releases - then yea... I would just use it in next potential releases since I believe (I hope) will save my time by preparing complicated explanation on how to edit certain places in itemtype.dat ...

yea thats the point of this one request
07/15/2009 02:14 Necron33#12
If your request is an editor - [Only registered and activated users can see links. Click Here To Register...].
(new itemtypes from patch 1153+(not used here at all) , this WONT EDIT - i would be glad to port the existinhg editor to it :))
If your request is just an updater, why not patching the game after editing.
sorry, if i didn't understand you good, i just woke up ^^
07/15/2009 02:19 SoulNecturn#13
Heh yes you didint :)

My question was simply about kind of autopatcher that funhacker made for his last unicorn mount release :)
This autopatcher update already existing itemtype.dat with:
certain data about item, numbder of item in proper place and make number of items higher - so your original itemtype.dat is still intact but it is updated by new items :)

;)
07/15/2009 02:25 Necron33#14
I said replacing , funhacker had probably coded it :rolleyes:
07/15/2009 02:36 SoulNecturn#15
Quote:
Originally Posted by Necron33 View Post
I said replacing , funhacker had probably coded it :rolleyes:
Thats the point I dont wanna release anything which require to replace with file that wont be compatible etc ... :) For example my itemtype.dat is way different now under ID's etc then others and would be little odd if I will ask them to use mine or something :)

Thats why IF/WHEN etc I will be releasing something that will require itemtype.dat edit then probably I will make guide with SS how and where :( which is not so cool and fast option :(