Need help with your JScripts? Got questions concerning the DFNs? Come forward, step inside
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Mon Sep 03, 2012 1:55 am
Testing the script for runebook (posted in link below), the following error appeared...
viewtopic.php?f=20&t=122&hilit=runebook
How to fix it? What is it?
And suddenly, out of nowhere, came the other bug deed_005 script. Someone can tell what it is, because it occurred or how to fix it?
Xuri
Site Admin
Posts: 3704 Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked:
48 times
Been thanked:
8 times
Contact:
Post
by Xuri » Sat Sep 08, 2012 5:11 am
Hey, sorry for the slow reply. What does your jse_fileassociations.scp file look like? Which ID did you assign the runebook script to?
-= Ho Eyo He Hum =-
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Sat Sep 08, 2012 3:41 pm
No problems Xuri, you are very busy and is also "alone" here to take any questions.
Yes, everything is normal, apparently. Alright...
55 = server/ misc/ deeds_005.js 3707 = custom/ runebook.js [ livrorunas] { NAME= Livro de Runas ID= 0x22C5 VALUE= 200 100 WEIGHT= 100 RESTOCK= 1 VISIBLE= 0 MOVABLE= 1 PILEABLE= 1 DECAY= 1 WIPE= 0 AMOUNT= 1 SCRIPT= 3707 }
Xuri
Site Admin
Posts: 3704 Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked:
48 times
Been thanked:
8 times
Contact:
Post
by Xuri » Sat Sep 08, 2012 4:25 pm
Hm. Looks okay. Does removing the runebook stop the deed-script from getting errors?
-= Ho Eyo He Hum =-
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Sat Sep 08, 2012 5:56 pm
I put "//" in front of the script and runebook and aquarium of Dragon Slayer and continued the same way... The deed-script file is place in the correct folder and has never been changed / modified...
Xuri
Site Admin
Posts: 3704 Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked:
48 times
Been thanked:
8 times
Contact:
Post
by Xuri » Mon Oct 22, 2012 3:21 pm
Oh lord, I suspect I know what was causing this now.
The link you posted to the runebook-script page has a "&hilit=runebook"-thing at the end, which is most likely the result of having found the page through doing a forum-search for the keyword "runebook", correct? What this apparently does though, is to attempt to highlight the keyword on the page it found... including inside the scripts themselves.
By doing this it has added HTML-bits directly into the Javascript, complete with <> brackets and quotation marks... which will break the script in horrible, horrible ways, since the "Javascript Syntax Highlighting" feature displays everything as text-only, without parsing HTML/BBCodes.
I'll try to get the forum fixed so it stops trying to highlight words inside the expandable "Javascript Syntax" thing, but until that, make sure that you open the pages with scripts on them without the highlighting bit that the forum-search adds. Just delete the "&hilit=runebook" (or other keyword) from the end of the URL and press enter.
-= Ho Eyo He Hum =-
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Tue Oct 23, 2012 3:43 pm
Very good Xuri, was exactly that!
I looked at what you said about the research part, and really changes occur in the script due to this. Now everything is normal!
But the part of deeds_005 seems to continue. But still, do not bother your head about this.
Congratulations.
Xuri
Site Admin
Posts: 3704 Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked:
48 times
Been thanked:
8 times
Contact:
Post
by Xuri » Tue Oct 23, 2012 5:47 pm
No worries. If you post the contents of your jse_fileassociations.scp file (or send it to me on PM), I can have a look and see if anything stands out for the deeds_005 problem.
-= Ho Eyo He Hum =-
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Tue Oct 23, 2012 7:49 pm
//================================================================================================================================ // CORE 0-99 //================================================================================================================================ // Global 0 // Variados 1-99 // // //================================================================================================================================ // SISTEMA 100-2999 //================================================================================================================================ // Skills 100-399 // Livre 400-499 // Iluminação 500-599 // Magias 600-799* // SkillUse 800-999* // Comandos 1000-1499* // Packets 1500-1999* // Farming 2000-2999 // // // * Estes IDs são definidos fora do bloco script_list //================================================================================================================================ // NPCs/AIs 3000-5999 //================================================================================================================================ // Diálogos 3000-3099 // Cocheiro/Tickets 3100-3199 // Ais Variadas 3200-3499 // Ais de Monstros 3500-3999 // //================================================================================================================================ // NOTA: Certifique-se que todos os ID são únicos através deste arquivo //================================================================================================================================ [ SCRIPT_LIST] { //================================================================================================================================ // CORE: 0-99 - RESERVADO PARA NECESSIDADES ESPECÍFICAS DO SERVIDOR //================================================================================================================================ //-------------------------------------------------------------------------------------------------------------------------------- // Transformação de móveis: 50-54 //-------------------------------------------------------------------------------------------------------------------------------- 50 = server/ misc/ furniture_smartturn.js //-------------------------------------------------------------------------------------------------------------------------------- // Escrituras: 55-59 //-------------------------------------------------------------------------------------------------------------------------------- 55 = server/ misc/ deeds_005.js //-------------------------------------------------------------------------------------------------------------------------------- // Addons: 60-64 //-------------------------------------------------------------------------------------------------------------------------------- 60 = server/ misc/ furniture_destroy.js //================================================================================================================================ // SISTEMA: 100-2999 - RESERVADO PARA NECESSIDADES ESPECÍFICAS DO SERVIDOR //================================================================================================================================ //-------------------------------------------------------------------------------------------------------------------------------- // Cozinhar: 100-129 //-------------------------------------------------------------------------------------------------------------------------------- 101 = skill/ cooking/ flour.js 102 = skill/ cooking/ dough.js 103 = skill/ cooking/ bread.js 105 = skill/ cooking/ cookedfish.js 106 = skill/ cooking/ cookedribs.js 107 = skill/ cooking/ cookedbird.js 109 = skill/ cooking/ cookedchicken.js 110 = skill/ cooking/ cookedlegoflamb.js 111 = skill/ cooking/ friedeggs.js //-------------------------------------------------------------------------------------------------------------------------------- // Costurar: 130-159 //-------------------------------------------------------------------------------------------------------------------------------- 131 = skill/ tailoring/ scissors.js 132 = skill/ tailoring/ wthreadspools- 6 .js 133 = skill/ tailoring/ flaxtothread.js 134 = skill/ tailoring/ wyarnballs- 3 .js 135 = skill/ tailoring/ wclothbolt.js //-------------------------------------------------------------------------------------------------------------------------------- // Tocar intrumentos musicais //-------------------------------------------------------------------------------------------------------------------------------- 136 = skill/ musicianship.js //-------------------------------------------------------------------------------------------------------------------------------- // Sistema de iluminação: 500-699 //-------------------------------------------------------------------------------------------------------------------------------- 501 = server/ light/ candle01_on.js 502 = server/ light/ candle01_off.js 503 = server/ light/ candle02_on.js 504 = server/ light/ candle02_off.js 505 = server/ light/ torch01_on.js 506 = server/ light/ torch01_off.js 507 = server/ light/ torch02_on.js 508 = server/ light/ torch02_off.js 509 = server/ light/ torch03_on.js 510 = server/ light/ torch03_off.js 511 = server/ light/ lantern01_on.js 512 = server/ light/ lantern01_off.js 513 = server/ light/ lantern02_on.js 514 = server/ light/ lantern02_off.js 515 = server/ light/ lantern03_on.js 516 = server/ light/ lantern03_off.js 517 = server/ light/ candle03_on.js 518 = server/ light/ candle03_off.js 519 = server/ light/ candelabra01_on.js 520 = server/ light/ candelabra01_off.js 521 = server/ light/ candle04_on.js 522 = server/ light/ candle04_off.js 523 = server/ light/ candelabra02_on.js 524 = server/ light/ candelabra02_off.js 525 = server/ light/ lamp01_on.js 526 = server/ light/ lamp01_off.js 527 = server/ light/ lamp02_on.js 528 = server/ light/ lamp02_off.js 529 = server/ light/ lamp03_on.js 530 = server/ light/ lamp03_off.js 531 = server/ light/ heatingstand01_on.js 532 = server/ light/ heatingstand01_off.js 533 = server/ light/ heatingstand02_on.js 534 = server/ light/ heatingstand02_off.js 535 = server/ light/ candle05_on.js 536 = server/ light/ candle05_off.js 537 = server/ light/ candle06_on.js 538 = server/ light/ candle06_off.js 539 = server/ light/ candle07_on.js 540 = server/ light/ candle07_off.js 541 = server/ light/ candle08_on.js 542 = server/ light/ candle08_off.js 543 = server/ light/ candle09_on.js 544 = server/ light/ candle09_off.js //-------------------------------------------------------------------------------------------------------------------------------- // Colheita e coleta de recursos: 2000-2099 //-------------------------------------------------------------------------------------------------------------------------------- 2001 = server/ resource/ apples.js 2002 = server/ resource/ peaches.js 2003 = server/ resource/ pears.js 2004 = server/ resource/ bananas.js 2005 = server/ resource/ coconuts.js 2006 = server/ resource/ dates.js 2007 = server/ resource/ grapes.js 2008 = server/ resource/ wheat.js 2009 = server/ resource/ cotton.js 2010 = server/ resource/ flax.js 2011 = server/ resource/ bee_hives.js 2012 = server/ resource/ sheepshearing.js //-------------------------------------------------------------------------------------------------------------------------------- // Recipientes de água e leite: 2100-2199 //-------------------------------------------------------------------------------------------------------------------------------- 2100 = server/ resource/ pitchers.js //-------------------------------------------------------------------------------------------------------------------------------- // Dados do servidor //-------------------------------------------------------------------------------------------------------------------------------- 2500 = server/ data/ weapontypes.js 2501 = server/ data/ combatanims.js //================================================================================================================================ // NPCs/AIs: 3000-5999 //================================================================================================================================ //-------------------------------------------------------------------------------------------------------------------------------- // NPCs diálogos:[3000-3099] //-------------------------------------------------------------------------------------------------------------------------------- 3000 = npc/ speech/ speech_001.js //-------------------------------------------------------------------------------------------------------------------------------- // NPCs humanos: 3100-3199 //-------------------------------------------------------------------------------------------------------------------------------- 3100 = npc/ ai/ cocheiro.js 3101 = npc/ ai/ banqueiro.js //-------------------------------------------------------------------------------------------------------------------------------- // AIs para monstros: 3200-3599 //-------------------------------------------------------------------------------------------------------------------------------- 3200 = npc/ ai/ Novas/ animais_domados.js 3201 = npc/ ai/ Novas/ animais_de_carga.js 3202 = npc/ ai/ Novas/ invocações_magery.js 3203 = npc/ ai/ Novas/ invocações_incotroláveis.js 3204 = npc/ ai/ Novas/ aranhas_nível1.js 3205 = npc/ ai/ Novas/ aranhas_nível2.js 3206 = npc/ ai/ Novas/ aranhas_nível3.js 3207 = npc/ ai/ Novas/ montros_venenosos_nível1.js 3208 = npc/ ai/ Novas/ montros_venenosos_nível2.js 3209 = npc/ ai/ Novas/ montros_venenosos_nível3.js 3210 = npc/ ai/ Novas/ npc_vendedor.js 3211 = npc/ ai/ Novas/ selvagens.js 3212 = npc/ ai/ Novas/ ettins.js 3213 = npc/ ai/ Novas/ dragões.js //-------------------------------------------------------------------------------------------------------------------------------- // Scripts variados: 3600-3999 //-------------------------------------------------------------------------------------------------------------------------------- 3600 = npc/ ai/ cow_tipping.js 3700 = custom/ canhão.js 3701 = custom/ cofre_bancário.js 3702 = custom/ lixeira.js 3703 = custom/ titan.js 3704 = custom/ blacksmith_ferro.js 3705 = custom/ gateup.js 3706 = custom/ tomo_magias_completo.js 3707 = custom/ livro_de_runas.js 3708 = custom/ aquário.js 3709 = custom/ fundir_minério.js 3710 = custom/ minerar.js 3711 = custom/ alimentos.js 3712 = custom/ vampiros.js //-------------------------------------------------------------------------------------------------------------------------------- // General Skills //-------------------------------------------------------------------------------------------------------------------------------- 4000 = skill/ healing.js 4001 = skill/ repairbow.js 4002 = skill/ repairleather.js 4003 = skill/ tinkering.js 4004 = skill/ tailoring.js 4005 = skill/ fletching.js 4006 = skill/ carpentry.js 4007 = skill/ alchemy.js 4008 = skill/ lockpicking.js 4009 = skill/ tinkeraxle.js 4010 = skill/ tinkerawg.js 4011 = skill/ tinkerclock.js 4012 = skill/ tinkersextant.js //-------------------------------------------------------------------------------------------------------------------------------- // Portas //-------------------------------------------------------------------------------------------------------------------------------- 4500 = item/ doors.js //-------------------------------------------------------------------------------------------------------------------------------- // Diversos tipos de itens //-------------------------------------------------------------------------------------------------------------------------------- 5000 = item/ teleportrune.js 5001 = item/ food.js 5003 = item/ potion.js 5004 = item/ teleporter.js 5005 = item/ trainingdummy.js 5006 = item/ pickpocketdip.js 5007 = item/ archerybutte.js 5008 = item/ kindling.js 5009 = item/ sword.js 5010 = item/ axe.js 5011 = item/ moongate.js 5012 = item/ oilcloth.js 5013 = item/ key.js 5014 = item/ clock.js 5015 = item/ bankcheck.js 5016 = item/ moonstone.js 5017 = item/ spyglass.js 5018 = item/ magicscroll.js 5019 = item/ bola.js 5020 = item/ diceandcup.js 5021 = item/ bedroll.js } //================================================================================================================================ // Comandos do sistema: 1000-1999 //================================================================================================================================ [ COMMAND_SCRIPTS] { // 1000-1499 1000 = commands/ custom/ travel.js 1001 = commands/ custom/ repeatingcmds.js 1002 = commands/ custom/ misc- cmd.js 1003 = commands/ reload.js 1004 = commands/ resend.js 1005 = commands/ setrace.js 1006 = commands/ allmove.js 1007 = commands/ houseicons.js 1008 = commands/ yell.js 1009 = commands/ skin.js 1010 = commands/ showtime.js 1011 = commands/ light.js 1012 = commands/ poly.js 1013 = commands/ sound.js 1014 = commands/ wholist.js 1015 = commands/ zerokills.js 1016 = commands/ cleanup.js 1017 = commands/ delid.js 1018 = commands/ killall.js 1019 = commands/ gumpmenu.js 1020 = commands/ secondsperuominute.js 1021 = commands/ consoletest.js 1022 = commands/ fix.js 1023 = commands/ xgate.js 1024 = commands/ go.js 1025 = commands/ where.js 1026 = commands/ targeting/ add.js 1027 = commands/ targeting/ effects.js 1028 = commands/ targeting/ vendor.js 1029 = commands/ targeting/ stats.js 1030 = commands/ targeting/ glow.js 1031 = commands/ targeting/ remove.js 1032 = commands/ targeting/ open.js 1033 = commands/ targeting/ movetobag.js 1034 = commands/ targeting/ npcwander.js 1035 = commands/ targeting/ magic.js 1036 = commands/ targeting/ set .js 1037 = commands/ targeting/ inc.js 1038 = commands/ targeting/ gumps.js 1039 = commands/ targeting/ kill.js 1040 = commands/ targeting/ disconnect.js 1041 = commands/ targeting/ tele.js 1042 = commands/ targeting/ dupe.js 1043 = commands/ targeting/ squelch.js 1044 = commands/ targeting/ hide.js 1045 = commands/ targeting/ jail.js 1046 = commands/ targeting/ x.js 1047 = commands/ targeting/ areacommand.js 1048 = commands/ targeting/ wipe.js 1049 = commands/ targeting/ showdetail.js 1050 = commands/ targeting/ makeshop.js 1051 = commands/ targeting/ rndtile.js 1052 = commands/ time.js 1053 = commands/ accountlogins.js 1100 = commands/ custom/ h.js 1101 = commands/ custom/ atacar.js 1102 = commands/ custom/ possuir.js } //================================================================================================================================ // Sistema de magia - //================================================================================================================================ [ MAGIC_SCRIPTS] { // 600-799 600 = magic/ clumsy.js 601 = magic/ level1targ.js } //================================================================================================================================ // Skills //================================================================================================================================ [ SKILLUSE_SCRIPTS] { // 800-999 800 = skill/ hiding.js 801 = skill/ stealth.js 802 = skill/ evaluateintel.js 803 = skill/ spiritspeak.js 804 = skill/ animallore.js 805 = skill/ anatomy.js 806 = skill/ armslore.js 807 = skill/ taming.js 808 = skill/ forensics.js 809 = skill/ begging.js 810 = skill/ detecthidden.js 811 = skill/ poisoning.js 812 = skill/ peacemaking.js 813 = skill/ enticement.js 814 = skill/ provocation.js 815 = skill/ inscription.js 816 = skill/ meditation.js } [ PACKET_SCRIPTS] { // 1500-1999 } [ CONSOLE_SCRIPTS] { 9000 = console/ reloads.js 9001 = console/ shutdown.js }
Xuri
Site Admin
Posts: 3704 Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked:
48 times
Been thanked:
8 times
Contact:
Post
by Xuri » Wed Oct 24, 2012 8:56 am
Just delete the following line from jse_fileassociations.scp:
55=server/misc/deeds_005.js
Either the script was never finished, or it has been modified by someone and then submitted to the CVS by accident, because at the moment the script itself makes no sense. It's described as a "script for a deed for carpentered multi item", with a comment saying "TESTSCRIPT for positioning an item" - and then the script itself deals with stealing honey from beehives. Heh. As far as I can see the script has been like that since before 2005, so no telling whether it was always like that or was modified at some point.
Anyway, to make a long story short - you don't need it, and it does nothing useful at the moment. Remove it (I'll do the same for next UOX3 version).
-= Ho Eyo He Hum =-
Blue Dragon
UOX3 Apprentice
Posts: 159 Joined: Mon Jan 09, 2012 1:43 am
Has thanked:
0
Been thanked:
0
Post
by Blue Dragon » Wed Oct 24, 2012 2:03 pm
Interesting... but ok, Removed!
Thank you.