Jump to content

Geowil

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    AZ, USA
  • Github: Geowil

Contact Methods

Recent Profile Visitors

1007 profile views

Geowil's Achievements

Poring

Poring (1/15)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

2

Community Answers

  1. I think this was due to the value used for equip_upper. When I changed this value to the same value as used in an official usable item my customs started working.
  2. Oh, cool thanks. I also found I had to fix quite a bit in the script itself due to the way in which rAthena processes the atcommand script command. Everything is working now though.
  3. I am having some issues with a script from my eAthena server. I think some things have changed with rAthena that are causing this issue but I am not sure what those are so here is the problem. Whenever I try to use an item which calls a specific script my map server displays the following errors: [Warning]: Unable to restore stack! Double continuation! [Debug]: Previous script (lost): [Debug]: Source (NPC): FAKE_NPC (invisible/not on a map) [Debug]: Current script: [Debug]: Source (NPC): summonscript (invisible/not on a map) Here is how I am calling the script from the item's script field: getitem 57000,1; set $@homunsummoned,2; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal"; The item is consumed so I am first giving them the item back. I am then setting a character variable storing the homunculus summoned as well as setting one which stores the accountid of the character that used the item. Next I call the OnItemSummonGlobal function of my summonscript. Here is the code for that below: - script summonscript -1,{ OnItemSummonGlobal: attachrid($@summoner); if (class != 18 || class != 4017) goto beginsummon; if (class == 18) && (class == 4017) goto arealch; beginsummon: mes "[Equivilant Trade]"; mes "The summoning prossess is now begining, you will need one Seed of Life, and one Dew of Yggdrasil. Once those itmes are supplied you may begin."; mes "Do you have these items?"; if (countitem(7140) < 1 || countitem(7141) < 1) { mes "You have not one or more of the items required. Please go and get them then try once more."; close; } mes "You may now begin."; set @fail,rand(1,100); //Chimera prossessing //10% if (failprecent == 0) { if (@fail == 10) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 10%."; set failprecent,failprecent + 1; goto removeItems; close; }} //20% if (failprecent == 1) { if (@fail <= 10 || @fail == 20) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 20%."; set failprecent,failprecent + 1; goto removeItems; close; }} //30% if (failprecent == 2) { if (@fail <= 20 || @fail == 30 ) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 30%."; set failprecent,failprecent + 1; goto removeItems; close; }} //40% if (failprecent == 3) { if (@fail <= 30 || @fail == 40 ) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 40%."; set failprecent,failprecent + 1; goto removeItems; close; }} //50% if (failprecent == 4) { if (@fail <= 40 || @fail == 50 ) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 50%."; set failprecent,failprecent + 1; goto removeItems; close; }} //60% if (failprecent == 5) { if (@fail <= 50 || @fail == 60) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 60%."; set failprecent,failprecent + 1; goto removeItems; close; }} //70% if (failprecent == 6) { if (@fail <= 60 || @fail == 70) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 70%."; set failprecent,failprecent + 1; goto removeItems; close; }} //80% if (failprecent == 7) { if (@fail <= 70 || @fail == 80) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 80%."; set failprecent,failprecent + 1; goto removeItems; close; }} //90% if (failprecent == 8) { if (@fail <= 80 || @fail == 90) { atcommand @monsterbig +"Chimera"; mes "Your Failure Rate is now at 90%."; set failprecent,failprecent + 1; goto removeItems; close; }} //100% if (failprecent == 9) { if (@fail <= 100) { atcommand @monsterbig +"Chimera"; mes "Your Failure rate is now at 100%, this means you will spawn a Chimera at any time you try to summon. Please visit Hoenheim for help."; goto removeItems; close; }} //Homunc prossessing if ($@homunsummoned == 1) { atcommand @summon +"6001"; goto removeItems; close; } if ($@homunsummoned == 2) { atcommand @summon +"6002"; goto removeItems; close; } if ($@homunsummoned == 3) { atcommand @summon +"6003"; goto removeItems; close; } if ($@homunsummoned == 4) { atcommand @summon +"6004"; goto removeItems; close; } if ($@homunsummoned == 5) { atcommand @summon +"6005"; goto removeItems; close; } if ($@homunsummoned == 6) { atcommand @summon +"6006"; goto removeItems; close; } if ($@homunsummoned == 7) { atcommand @summon +"6007"; goto removeItems; close; } if ($@homunsummoned == 8) { atcommand @summon +"6008"; goto removeItems; close; } if ($@homunsummoned == 9) { atcommand @summon +"6009"; goto removeItems; close; } if ($@homunsummoned == 10) { atcommand @summon +"6010"; goto removeItems; close; } if ($@homunsummoned == 11) { atcommand @summon +"6011"; goto removeItems; close; } if ($@homunsummoned == 12) { atcommand @summon +"6012"; goto removeItems; close; } if ($@homunsummoned == 13) { atcommand @summon +"6013"; goto removeItems; close; } if ($@homunsummoned == 14) { atcommand @summon +"6014"; goto removeItems; close; } if ($@homunsummoned == 15) { atcommand @summon +"6015"; goto removeItems; close; } if ($@homunsummoned == 16) { atcommand @summon +"6016"; goto removeItems; close; } removeItems: delitem 7140,1; delitem 7141,1; arealch: mes "You are a Creator or Alchemist, therefore you can not use this. This is for Non-Alchemist tree individuals who do not know Alchemy."; close; This npc is nested within the npc file of a visible NPC in case that is important to know.
  4. Could you post the item record and any map server errors relating to your item_db file? Sounds like it may be a parsing issue to me.
  5. Hello, I am facing an issue with some items from my old server circa 2009-ish. I have consulted the doc files for certain fields in the item_db_re table but everything seems to be correct. These useable items have scripts on them but I don't think these are even firing as the items are not being used and I have not seen any errors in the map server upon trying to use them. Below are the database records for these items. I will describe each item type below. 57000,'Ami_EM','Amistr Embryo',2,2,0,0,0,0,0,0,134217727,7,2,0,0,1,0,0,'getitem 57000,1; set $@homunsummoned,2; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57001,'Ami2_EM','Amistr 2 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57001,1; set $@homunsummoned,6; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57002,'Ami3_EM','Amistr 3 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57002,1; set $@homunsummoned,10; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57003,'Ami4_EM','Amistr 4 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57003,1; set $@homunsummoned,14; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57004,'Fil_EM','Filir Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57004,1; set $@homunsummoned,3; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57005,'Fil2_EM','Filir 2 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57005,1; set $@homunsummoned,7; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal"';,'','' 57006,'Fil3_EM','Filir 3 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57006,1; set $@homunsummoned,11; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57007,'Fil4_EM','Filir 4 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57007,1; set $@homunsummoned,15; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57008,'Lif_Embryo','Lif_Embryo',0,2,1,10,0,0,0,0,134217727,7,2,0,0,1,0,0,'getitem 57008,1; set $@homunsummoned,1; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57009,'Lif2_EM','Lif 2 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57009,1; set $@homunsummoned,5; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57010,'Lif3_EM','Lif 3 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57010,1; set $@homunsummoned,9; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57011,'Lif4_EM','Lif 4 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57011,1; set $@homunsummoned,13; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57012,'Van_EM','Vanilmirth Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57012,1; set $@homunsummoned,4; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57013,'Van2_EM','Vanilmirth 2 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57013,1; set $@homunsummoned,8; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57014,'Van3_EM','Vanilmirth 3 Embryo',2,0,0,0,0,0,0,0,4294967295,7,2,0,0,1,0,0,'getitem 57014,1; set $@homunsummoned,12; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 57015,'Van4_EM','Vanilmirth 4 Embryo',2,2,0,0,0,0,0,0,134217727,7,2,0,0,1,0,0,'getitem 57015,1; set $@homunsummoned,16; set $@summoner,getcharid(3); donpcevent "summonscript::OnItemSummonGlobal";','','' 58000,'lvl1lds','Level 1 Scroll of Disguise: Lunatic',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise+" Lunatic"; set $@scrolluser,getcharid(3); donpcevent "dscrolls1::OnLevel1";','','' 58001,'lvl2lds','Level 2 Scroll of Disguise: Lunatic',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Lunatic"; set $@scrolluser,getcharid(3); donpcevent "dscrolls2::OnLevel2";','','' 58002,'lvl3lds','Level 3 Scroll of Disguise: Lunatic',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Lunatic"; set $@scrolluser,getcharid(3); donpcevent "dscrolls3::OnLevel3";','','' 58003,'lvl4lds','Level 4 Scroll of Disguise: Lunatic',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Lunatic"; set $@scrolluser,getcharid(3); donpcevent "dscrolls4::OnLevel4";','','' 58004,'lvl1pds','Level 1 Scroll of Disguise: Poring',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poring"; set $@scrolluser,getcharid(3); donpcevent "dscrolls1::OnLevel1";','','' 58005,'lvl2pds','Level 2 Scroll of Disguise: Poring',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poring"; set $@scrolluser,getcharid(3); donpcevent "dscrolls2::OnLevel2";','','' 58006,'lvl3pds','Level 3 Scroll of Disguise: Poring',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poring"; set $@scrolluser,getcharid(3); donpcevent "dscrolls3::OnLevel3";','','' 58007,'lvl4pds','Level 4 Scroll of Disguise: Poring',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poring"; set $@scrolluser,getcharid(3); donpcevent "dscrolls4::OnLevel4";','','' 58008,'lvl1ppds','Level 1 Scroll of Disguise: Poporing',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poporing"; set $@scrolluser,getcharid(3); donpcevent "dscrolls1::OnLevel1";','','' 58009,'lvl2ppds','Level 2 Scroll of Disguise: Poporing',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poporing"; set $@scrolluser,getcharid(3); donpcevent "dscrolls2::OnLevel2";','','' 58010,'lvl3ppds','Level 3 Scroll of Disguise: Poporing',2,20,0,10,0,0,0,0,4294967295,7,2,0,0,1,0,0,'atcommand @disguise +" Poporing"; set $@scrolluser,getcharid(3); donpcevent "dscrolls3::OnLevel3";','','' The first section of items are used with a script on my server to allow non-alchemist classes to use homuncs. Some character variables are set and then a script is called which process based on those variables. The second set of items are disguise scrolls which function in a similar fashion. The player is @disgusied and some char vars are set and a script called which processed when the timer for the scroll has run out and removes the @disguise. None of these items seem to do anything when double clicked on in the inventory and there are no errors being displayed in the map server upon loading of the items at server start nor when attempting to use the items.
  6. Nevermind I got it. I had not realized that another GRF was being loaded before the data.grf and the lub files in there did not have the entries which meant that the client had no clue what sprite to look for for this strange and new npc it suddenly found. Added my modified lubs to the first grf loaded and now the npc shows up just fine.
  7. Hello, I am having an issue adding in a custom npc sprite to my client. I think it may have to do with a mismatch in client files vs the actual client. So, just in case, does anyone know if the formatting of the lua/b files has changed since the Nov-2015 client? If yes, then you can ignore the rest of this post (but please reply that this is the case) and if not then here is the rest of the information. I am currently trying to revive my RO server which I took offline in 2009 but I am having issues getting a custom NPC sprite to show in-game. Here are all of the steps I have done until this point: I added the NPC ID to the npc.hpp file with the following line of code before NPC_Range3_END: I added an entry to data\lua files\datainfo\jobidentity.lub: I added an entry to data\lua files\datainfo\jobname.lub: I added an entry to data\lua files\datainfo\npcidentity.lub: I have also added all three of these entries to the data\luafiles514\lua files\... files as well. I then placed my jiburu.spr and jiburu.act files into data\sprite\npc. However, when I log into my server I am getting a file not found error:
×
×
  • Create New...