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..


All times are GMT. The time now is 21:46.