Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 08.04.2006, 17:17   #1
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default [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]
Sauron is offline  
Old 08.04.2006, 17:19   #2
xarion
Архивный участник
 
Join Date: Sep 2005
Posts: 220
Default

cool ,thnx
xarion is offline  
Old 08.04.2006, 17:21   #3
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Good share =) thank

[Share ½] xDDDDDDD
MuNLoK is offline  
Old 08.04.2006, 17:23   #4
melwidh
Архивный участник
 
Join Date: Oct 2005
Posts: 99
Default

Testing Good share
melwidh is offline  
Old 08.04.2006, 17:27   #5
demon
Архивный участник
 
Join Date: May 2005
Posts: 367
Default

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

i hate that rainning thing everyday :|
demon is offline  
Old 08.04.2006, 17:38   #6
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

=(
humordwarf is offline  
Old 08.04.2006, 17:46   #7
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

hmm seems interesting
kgptzac is offline  
Old 08.04.2006, 18:26   #8
drzoom
Архивный участник
 
Join Date: Aug 2005
Posts: 428
Default

thanks for share sauron
drzoom is offline  
Old 08.04.2006, 18:34   #9
aero77
Архивный участник
 
Join Date: Sep 2005
Posts: 45
Default

Nice Share! THX!
aero77 is offline  
Old 08.04.2006, 18:40   #10
midnight
Архивный участник
 
Join Date: Jun 2005
Posts: 199
Default

thanks sauron
midnight is offline  
Old 08.04.2006, 18:59   #11
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

midnight, umm tu nick me suena xD
MuNLoK is offline  
Old 08.04.2006, 19:30   #12
midnight
Архивный участник
 
Join Date: Jun 2005
Posts: 199
Default

De que munlok?
midnight is offline  
Old 08.04.2006, 20:25   #13
angelicmercer
Архивный участник
 
Join Date: Apr 2006
Posts: 42
Default

nicely done bro
angelicmercer is offline  
Old 08.04.2006, 22:50   #14
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

nice share sauron, and what is the difference between V1 and V2 ? :P
SoaPy is offline  
Old 08.04.2006, 22:56   #15
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

prize calculation i think.
Sauron is offline  
Old 09.04.2006, 00:02   #16
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Sauron you found skilldata? xD
MuNLoK is offline  
Old 10.04.2006, 13:15   #17
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

up
Domzelan is offline  
Old 10.04.2006, 14:22   #18
Ashikaa
Архивный участник
 
Join Date: Apr 2006
Posts: 5
Default

oh god, i really love if he finds the script. Nice share anyway.
Ashikaa is offline  
Old 10.04.2006, 20:48   #19
Ugmak
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

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.
Ugmak is offline  
Old 10.04.2006, 23:41   #20
Nurgl
Архивный участник
 
Join Date: May 2005
Posts: 118
Default

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
Nurgl is offline  
Old 10.04.2006, 23:44   #21
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

Post the LinError data?
Shawnmb is offline  
Old 10.04.2006, 23:56   #22
Ugmak
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

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
Ugmak is offline  
Old 10.04.2006, 23:59   #23
SoaPy
Архивный участник
 
Join Date: Feb 2005
Posts: 705
Default

both versions ?
SoaPy is offline  
Old 11.04.2006, 00:00   #24
Ugmak
Архивный участник
 
Join Date: Sep 2005
Posts: 72
Default

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.
Ugmak is offline  
Old 11.04.2006, 00:28   #25
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default

DELETED:

nvm, it uses fstring..
Silentz0r is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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