Jump to content
  • 0

Signed items - with arbitrary strings (no existing character) ?


LordAioria

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

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 LordAioria
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

*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 :P

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

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 by LordAioria
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

Thanks a lot Annie !!!! ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  12/31/11
  • Last Seen:  

Thanks in advance Ocean ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...