#insert_item Right Syntax

05/22/2011 22:06 Strean#1
the right syntax for the insert_item function :

#insert_item(ID,howmuch,+,level,flag,"YourName")

example :

#insert_item(540100,1,20,10,2,"[Admin]Strean")

description :

#insert_item(ID = 540100,howmuch = 1,+ = 20,level = 10,flag = 2 ( because 1 is for pets ),YourName = "[Admin]Strean")

if this don't work for you....

try this :

1. restore your telecaster datebase.

2. create a character

3. write in gameserver : #learn_all_skill("YourName")

4. now try the insert item function again.

Regards Strean.
05/22/2011 23:18 a.m.n#2
Nice is working :)
05/22/2011 23:31 cranK337#3
Finally, thx. =)
05/23/2011 00:46 Bikaz#4
Which DB do you use? im using the telecaster db of the step by step guide and when i try to give me any item i just get an timed item without textures and i cant use it anyway. =/ what am i doing wrong?

and yea, i haven't tried to restore the DB yet. if i do so the characters get lost or?
05/27/2011 19:02 Drmido#5
it is working with me like this /run insert_item(109723,1,20,10,2) no need for name
06/06/2011 12:12 dima714#6
Quote:
Originally Posted by Drmido View Post
it is working with me like this /run insert_item(109723,1,20,10,2) no need for name
/run commands - not working
06/06/2011 12:20 pastory#7
Thx :) i'll try
06/07/2011 01:34 cranK337#8
I still didn't figure out, why it works sometimes, and sometimes it does not.
07/24/2011 14:37 lawlywood#9
After i tested it a little i know how it works.

If some one creates an account (e.g. "max") and got an char named "Pro" he will only recieve the items if he was set to 300 (or 170. depends on what happens with the lvl max command). BUT if he logs on another char, like "Noob" on his Account "max" he will recieve the items there, even if you use insert_item(...,...,...,Pro)!

Now when another player logs in on his account "Alex" and creates a char like "iPwn" and gets lvled again via console (300 or 170) he will now recieve all the items! even if yuo type insert_item(...,...,...,Pro). At least it worked the way on my pserver. Notice: instead of making a new char it seems to work that you can go with "Pro" to the job changer, change to the next higher Job, run the max level command again and "pro" will be the item target again.

Hope it helps some ppl.
07/24/2011 16:08 s0ul37#10
To be honest the syntax was already known. It's just like this, the command is bugged and works on fresh created characters if you use #learn_all_skill command before. Relogging will result that the insert_item does not work anymore.