LordAioria Posted November 3, 2012 Posted November 3, 2012 (edited) Hi all, i see that i can created signed items linked to a char_id (existing character).... but how can i created for example: Homer's knife Blanch's knife without creating any character called Homer or Blanch? other point, is how can i ask for this specific item with this specific name at script? Like : do you have Homer's knife? Ok, let's continue..... Thanks in advance Edited November 3, 2012 by LordAioria Quote
Bin4ry Posted November 3, 2012 Posted November 3, 2012 *getnameditem(<item id>,"<name to inscribe>");*getnameditem("<item name>","<name to inscribe>"); This function is equivalent to using 'getitem', however, it will not just give the character an item object, but will also inscribe it with a specified character's name. You may not inscribe items with arbitrary strings, only with names of characters that actually exist. While this isn't said anywhere specifically, apparently, named items may not have cards in them, slots or no - these data slots are taken by the character ID who's name is inscribed. Only one remains free and it's not quite clear if a card may be there. This function will return 1 if an item was successfully created and 0 if it wasn't for whatever reason. Like 'getitem', this function will also accept an 'english name' from the item database as an item name and will return 0 if no such item exists. getnameditem "Knife","Homer"; Forget knife's ID 1 Quote
LordAioria Posted November 3, 2012 Author Posted November 3, 2012 (edited) Thanks but ... read: You may not inscribe items with arbitrary strings, only with names of characters that actually exist. i want to have the option to create any arbitrary string .. is there any possibility ? Any idea? Edited November 3, 2012 by LordAioria Quote
GmOcean Posted November 3, 2012 Posted November 3, 2012 As of right now it's not possible. Your best option, is to go into your sql database, and create those characters, just for your scripting purposes, on a dummy account. That way, they will indeed exist. What's more it won't matter if someone else has the same name, since your sql db editor will say, duplicate entry, that way, you know you can use that name. 2 Quote
AnnieRuru Posted November 4, 2012 Posted November 4, 2012 http://www.eathena.ws/board/index.php?s=&showtopic=272346&view=findpost&p=1491772 GmOcean seems to still remember this trick xD 1 Quote
GmOcean Posted November 5, 2012 Posted November 5, 2012 Lol, indeed I do. It was something i was interested in doing in the past, allowing my players to create weapons with custom names for fun..... Maybe I'll go look at eA's scripts and revamp them for rA D: Quote
Question
LordAioria
Hi all,
i see that i can created signed items linked to a char_id (existing character)....
but how can i created for example:
Homer's knife
Blanch's knife
without creating any character called Homer or Blanch?
other point, is how can i ask for this specific item with this specific name at script?
Like :
do you have Homer's knife? Ok, let's continue.....
Thanks in advance
Edited by LordAioria7 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.