Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [Share ½] Monster Race (https://postpacific.mmorpg-game.online/showthread.php?t=3953)

Sauron 08.04.2006 17:17

[Share ½] Monster Race
 
i can't find my scripts (htmls, skilldata, fstring, thats why i put ½ :P) but i'm gonna post them as soon as i find them.

npc cast a skill at the beggining, random skill so it can increase or decrease speed, it was coded for c3 so skills ids should be changed.
then its necessary to create a new castle (castledata) with the race_manager there, this will create a new row in castle db. the info saved there is use to calculate the prizes.

i recommend to read the code because i'm sure it need to be fixed somewhere. timers are wrong, are set to fast race, no pre race waiting.

and this was coded for original nasc, so i'm sure it can be optimized now.

fstring :)
Code:

33320        [We are now selling tickets for the Monster Race]
33321        [Tickets sales for Monster Race will cease in %s minute(s)]
33322 [Tickets sales are closed]
33323 [The Moster Race will begin in %s second(s)!]
33324 [They're off!]
33325 [First prize goes to the player in lane %s]
33326 [Second prize goes to the player in lane %s]
33327 [%s]
33328 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=1">]
33329 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=2">]
33330 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=3">]
33331 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=4">]
33332 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=5">]
33333 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=6">]
33334 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=7">]
33335 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?ask=3&reply=8">]
33336 [[img]L2UI.rightBtn2[/img]]
33337 [<button value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33338 [<button action="bypass -h menu_select?ask=11" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33339 [<button action="bypass -h menu_select?ask=12" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33340 [<button action="bypass -h menu_select?ask=13" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33341 [<button action="bypass -h menu_select?ask=14" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33342 [<button action="bypass -h menu_select?ask=15" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33343 [<button action="bypass -h menu_select?ask=16" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33344 [<button action="bypass -h menu_select?ask=17" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33345 [<button action="bypass -h menu_select?ask=18" value="Select Quantity" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton">]
33346 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=1&ask=]
33347 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=2&ask=]
33348 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=3&ask=]
33349 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=4&ask=]
33350 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=5&ask=]
33351 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=6&ask=]
33352 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=7&ask=]
33353 [<button back="L2UI.rightBtn2" fore="L2UI.rightBtn1" width=16 height=16 action="bypass -h menu_select?reply=8&ask=]
33354 [<button value="Confirm" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton]
33355 [<button value="Confirm" width=70 height=21 back="L2UI.DefaultButton_click" fore="L2UI.DefaultButton" action="bypass -h menu_select?]
33356 [<img src="L2UI.rightBtn2" width="16" height="16]


xarion 08.04.2006 17:19

cool ,thnx

MuNLoK 08.04.2006 17:21

Good share =) thank

[Share ½] xDDDDDDD

melwidh 08.04.2006 17:23

Testing Good share ;)

demon 08.04.2006 17:27

Sauron u have sun in argentina im thinking to move over.

i hate that rainning thing everyday :|

humordwarf 08.04.2006 17:38

=(

kgptzac 08.04.2006 17:46

hmm seems interesting

drzoom 08.04.2006 18:26

thanks for share sauron:)

aero77 08.04.2006 18:34

Nice Share! THX! :)

midnight 08.04.2006 18:40

thanks sauron

MuNLoK 08.04.2006 18:59

midnight, umm tu nick me suena xD

midnight 08.04.2006 19:30

De que munlok?

angelicmercer 08.04.2006 20:25

nicely done bro

SoaPy 08.04.2006 22:50

nice share sauron, and what is the difference between V1 and V2 ? :P

Sauron 08.04.2006 22:56

prize calculation i think.

MuNLoK 09.04.2006 00:02

Sauron you found skilldata? xD

Domzelan 10.04.2006 13:15

up

Ashikaa 10.04.2006 14:22

oh god, i really love if he finds the script. Nice share anyway.

Ugmak 10.04.2006 20:48

Well go tit compiled, made the npc, however, when i summon the race_manager, after 3 seconds she crashes the npc server, if anyone may know what causes this let me know.

Nurgl 10.04.2006 23:41

Quote:

Originally Posted by Ugmak
Well go tit compiled, made the npc, however, when i summon the race_manager, after 3 seconds she crashes the npc server, if anyone may know what causes this let me know.

At me too :(

Shawnmb 10.04.2006 23:44

Post the LinError data?

Ugmak 10.04.2006 23:56

here you go...


Server Up Time Mon Apr 10 11:31:36 2006

Server is closed by system manager.

Current Time : Mon Apr 10 12:46:56 2006

Elapsed Time : 0 days 1 hours 15 minutes 20 seconds
IOBufferPool - 5961

[(5796) 2006/04/10 12:46:56]: =======================
an Access Violation in module l2server.exe at 001b:0048e290.
start at 2006/4/10 11:31:30
Write to location 00000000 caused an access violation.

Registers:
EAX=00000000 CS=001b EIP=0048e290 EFLGS=00010246
EBX=00000000 SS=0023 ESP=0012f214 EBP=0012f340
ECX=00000002 DS=0023 ESI=0048e140 FS=003b
EDX=1ff6a000 ES=0023 EDI=00000000 GS=0000
Bytes at CS:EIP:
c6 05 00 00 00 00 01 ff 15 84 52 5b 00 33 c0 8b
Stack dump:
0012f214: 00000000 0012f3b8 0048e140 00000000 00650048 006c006c 0020006f 006f0057
0012f234: 006c0072 00210064 77f40000 77f895c8 00500000 0012f1a4 00000000 00000000
0012f254: 00000000 01000000 0012f198 bffdec00 0012f1d0 77f45a34 0012f32c 77f45a34
0012f274: 77f8c400 ffffffff 77f52c28 77f52d31 0012f33c 77f52bb2 77f52c28 002422b8
0012f294: bffdebf8 00000000 00000024 00000001 00000000 00000000 00000070 ffffffff
0012f2b4: ffffffff 77f52c03 77f52bb2 77c51244 00000050 00000000 00000000 bffdebf8
0012f2d4: 77f48418 00000000 77ce2e00 00000000 bffdebf8 77da02a8 77fc2500 0012f280
0012f2f4: 77ce2dd4 00000020 77f45a34 00000000 0048e140 0012f3a0 00000001 0012f3a0
0012f314: 00000000 00000000 0048e140 0012f3b8 00000001 0012f3b8 00000000 0012f218
0012f334: 0012f3d4 005a7281 ffffffff 0012f36c 77d0612f 000f025e 00000002 00000000


ver = Jun 8 2004____15:38:30 thread id=11

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <--
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <--
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) <--
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)

Thread[0] (good): Lock Stack :



[(5796) 2006/04/10 12:46:56]: *L2Server.cpp:114(Mon Jun 7 22:43:03 2004) exception

SoaPy 10.04.2006 23:59

both versions ?

Ugmak 11.04.2006 00:00

yup, i think it has to do with definiang the castle, but im not sure. No wher edid i add a castlenumber, or no where to add it, maybe i missed it, but i cant find the error.

This is the error i get just after its summoned:

04/10/2006 12:46:xx.xx0, npc socket close 50074(795f8a7c) error(64)

after that all npc's despawn.

Silentz0r 11.04.2006 00:28

DELETED:

nvm, it uses fstring..

Ugmak 11.04.2006 00:30

nope didnt do that

anyone else get this working properly?

Sauron 11.04.2006 03:09

Ugmak did u add the fstrings i posted?

i'm to lazy to rewrite this
Code:

<Sauron> they already exist
<Sauron> u need the skilldata
<Sauron> i think there were 6 skills in total, 3 like windwalk and 3 slows
<Sauron> or maybe tere were 12 skills... i dont remember, but it's easy to do, u just need to change skills_ids in the ai
<Sauron> you can test it using all wind walk, bw the createprivate can be chanted with the createprivateex
<Sauron> that one lets you spawn the mob where ever you want, so u dont need to do instantteleport
<chensir> i see
<chensir> ill play with it i guess
<chensir> skilldata i suck bad with though
<Sauron> use wind walk
<chensir> kk
<Sauron> another thing i forgot to post, the first race can be bugged, because i use old race to calculate prices and probabilities
<chensir> yeah i used the racmanager.vs.txt thing
<chensir> err v2
<Sauron> so i added this
<Sauron>        myself.i_ai0 = 15424531;
<Sauron>        myself.i_quest0 = 68763482;
<chensir> i hope you find your scripts though :) took me 3 days just to find my compile problem lol
<chensir> i guess i missed the old nasc thing
<Sauron> :P
<Sauron> i can't find my skilldata
<chensir> :(
<Sauron> i have so many skilldatas i may deleted it
<chensir> well i fyou happen to find it, a link to it would be awesome
<Sauron> but well the idea of the skilldata is to have a slow with 3 sec and the increase speed with 7 sec
<Sauron> so mobs change speed at the middle of the race
<chensir> cool cool
<Sauron> i dont have the increase param working, but that one could work to
<Sauron> if it changes mobs stats, it will work


Ugmak 11.04.2006 04:01

yeah i added the fstrings as well. Ive dbl checked the work a few times.

somethin gis missing just not sure what yet.

nucleus 11.04.2006 22:22

thanks

archy 11.04.2006 22:39

I've seen better Sauron :p

Eanae 12.04.2006 01:01

Quote:

Originally Posted by archy
I've seen better Sauron :p

May have, but nothing you've shared to people is it? Much appreiated Sauron.

chevitos 12.04.2006 01:46

che pelotudo si vas a poner algo ponlo completo o mejor no pongas nada para que no des verguensa papa y si lo tienes y te haces el pendejo el lineage es c4 y tu huevada es de c2 :d medita " developer"

MuNLoK 12.04.2006 11:36

//esp
tu si queres un pelotudo amargado que no tiene idea de nada ^^, la contribución de Sauron es realmente buena para los que realmente saben
esp//

chevitos n000000b and lecher

midnight 13.04.2006 11:32

Al menos el a contribuido con el codigo, si lo que le falta no sabes hacerlo estudia, que te hara falta.

Nurgl 20.04.2006 00:04

We have made it! Sauron, big thanks !
http://img220.imageshack.us/img220/8...00047tu.th.jpg
http://img220.imageshack.us/img220/4...00078ux.th.jpg
http://img220.imageshack.us/img220/5...00103ic.th.jpg

hel 20.04.2006 00:29

Nurgl:
o_O
Wow! Look's to be very nice.
You're finished MDT?
Could you share this?
//Rus
Мои поздравления! :D
Неплохо было-бы, если бы ты расшарил это Творение (с большой буквы ;D ).

Eanae 20.04.2006 01:10

A full share of this would be amazing ._.

RipperX 20.04.2006 01:38

I will try finish this, just give me some time :D

Kenster 20.04.2006 01:59

No offense bro, your using something some one shared, the least you can do is say how, and help the community. I could understand if you made it 100% yourself, but mang. Be true to Sauron.

Astomakith 20.04.2006 02:11

Is it just me, or are his mobs running backwards....


All times are GMT. The time now is 22:58.