![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
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] |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Sep 2005
Posts: 220
|
cool ,thnx
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2005
Posts: 255
|
Good share =) thank
[Share ½] xDDDDDDD |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Oct 2005
Posts: 99
|
Testing Good share
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
Sauron u have sun in argentina im thinking to move over.
i hate that rainning thing everyday :| |
|
|
|
|
#6 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
=(
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Jan 2006
Posts: 363
|
hmm seems interesting
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Aug 2005
Posts: 428
|
thanks for share sauron
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Sep 2005
Posts: 45
|
Nice Share! THX!
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Jun 2005
Posts: 199
|
thanks sauron
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Sep 2005
Posts: 255
|
midnight, umm tu nick me suena xD
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jun 2005
Posts: 199
|
De que munlok?
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Apr 2006
Posts: 42
|
nicely done bro
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
nice share sauron, and what is the difference between V1 and V2 ? :P
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
prize calculation i think.
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Sep 2005
Posts: 255
|
Sauron you found skilldata? xD
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Apr 2005
Posts: 599
|
up
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Apr 2006
Posts: 5
|
oh god, i really love if he finds the script. Nice share anyway.
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Sep 2005
Posts: 72
|
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.
|
|
|
|
|
#20 | |
|
Архивный участник
Join Date: May 2005
Posts: 118
|
Quote:
|
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Feb 2005
Posts: 307
|
Post the LinError data?
|
|
|
|
|
#22 |
|
Архивный участник
Join Date: Sep 2005
Posts: 72
|
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 |
|
|
|
|
#23 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
both versions ?
|
|
|
|
|
#24 |
|
Архивный участник
Join Date: Sep 2005
Posts: 72
|
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. |
|
|
|
|
#25 |
|
Архивный участник
Join Date: Apr 2005
Posts: 122
|
DELETED:
nvm, it uses fstring.. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|