I tried creating my own Healing potion which I based on White and Blue potion, then on the iteminfo.lua I wanted it to display like the "HP Increase Potion(Large)" and "SP Increase Potion(Large)" with item ID: 12424 and 12427 respectively, however when I try to generate the item using @item command, it return "Apple" item instead, not "Unknown Item". When I generate the 12424 and 12427 they generate fine, map-server did not return any issues so I don't know where I went wrong.
I understand that it would be easier to replace the existing item that I based this on, however creating a custom item would let me control it more. I just want to know what could be the issue and how to resolved this in the future. Also when I hex my client It was reading iteminfo.lua.
Question
norightinfo
Hi,
I tried creating my own Healing potion which I based on White and Blue potion, then on the iteminfo.lua I wanted it to display like the "HP Increase Potion(Large)" and "SP Increase Potion(Large)" with item ID: 12424 and 12427 respectively, however when I try to generate the item using @item command, it return "Apple" item instead, not "Unknown Item". When I generate the 12424 and 12427 they generate fine, map-server did not return any issues so I don't know where I went wrong.
item_db_usable:
- Id: 2000001 AegisName: HP_Supply_Potion Name: HP Increase Potion Type: Healing Weight: 3 Trade: Override: 100 NoDrop: true NoTrade: true NoSell: true Script: | itemheal rand(325,405),0; - Id: 2000002 AegisName: SP_Supply_Potion Name: SP Increase Potion Type: Healing Weight: 3 Trade: Override: 100 NoDrop: true NoTrade: true NoSell: true Script: | itemheal 0,rand(50,70);
iteminfo.lua:
[2000001] = { unidentifiedDisplayName = "HP Increase Potion", unidentifiedResourceName = "HP증가포션_대", unidentifiedDescriptionName = { "" }, identifiedDisplayName = "HP Increase Potion", identifiedResourceName = "HP증가포션_대", identifiedDescriptionName = { "A supplied HP potion that weighs significantly less.", "^FFFFFF_^000000", "Class:^0000FF Restorative^000000", "Heal:^009900 325 - 405^000000 HP", "Weight:^009900 3^000000" }, slotCount = 0, ClassNum = 0 }, [2000002] = { unidentifiedDisplayName = "SP Increase Potion", unidentifiedResourceName = "SP증가포션_대", unidentifiedDescriptionName = { "" }, identifiedDisplayName = "SP Increase Potion", identifiedResourceName = "SP증가포션_대", identifiedDescriptionName = { "A supplied SP potion that weighs significantly less.", "^FFFFFF_^000000", "Class:^0000FF Restorative^000000", "Restore:^009900 325 - 405^000000 SP", "Weight:^009900 3^000000" }, slotCount = 0, ClassNum = 0 },
Actual Image:

Here is the item that I based it on:
Here is when I tried to generate the item:

I understand that it would be easier to replace the existing item that I based this on, however creating a custom item would let me control it more. I just want to know what could be the issue and how to resolved this in the future. Also when I hex my client It was reading iteminfo.lua.

Edited by norightinforemove duplicate images
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.