null.
Want to do that, too. :D
Want to do that, too. :D
Why don`t you try it on an other way. You try to insert them directly, this seem`s not to work. Try it with the ShopBox (dbo.paiditem)Quote:
Heya,
Some confusing title, but I will explain it for ya.
I'm working on a GM/Admin-Panel in php, for example: Insert Items or Buffs.
Thats because most times I'm not able to connect ingame, because I'm not at home.
I'm going to release the finished script for sure. ;)
All was working fine expect inserting skillcards.
When I'm going to insert a skillcard via SQL/PHP, I will get it Ingame.
But if I relogg, either the skillcard disappears or it is +1 insteat of +10.
Raskim? ismoke? someone of NCarbon? someone who knows about SQL?
Try to find the issue.
First try:
Second try (just a general insert_item-procedure)
Thanks for reply.
Use Telecaster DECLARE @id int; --accountid DECLARE @itemcount int; --Anzahl der Items DECLARE @item int; DECLARE @avatarid int; -----------Insert Settings here----------------- SET @item = '' --INSERT ITEM ID (e.g. 2010764 R6 Cloak) SET @itemcount = '1' --INSERT THE NUMBER OF ITEMS SELECT @avatarid = sid FROM Character WHERE name = 'CHARNAME' --INSERT CHARACTER NAME ------------------------------------------------ SELECT @id = account_id FROM Character WHERE sid = @avatarid --Warning IF @id IS NULL BEGIN PRINT 'WARNING: This Character does not exist. No Rows affected!' RETURN END --DB Update INSERT INTO [telecaster].[dbo].[PaidItem]([account_id],[avatar_id],[avatar_name],[item_code],[item_count],[rest_item_count],[bought_time],[valid_time],[server_name],[taken_avatar_id],[taken_avatar_name],[taken_server_name],[taken_time],[taken_account_id],[confirmed],[confirmed_time]) VALUES (@id,@avatarid,NULL,@item,@itemcount,@itemcount,'2011-10-01 12:00:00.000',NULL,NULL,NULL,NULL,NULL,NULL,@id,NULL,NULL)
Ist doch im Prinzip nichts anderes wie mein Script? :DQuote:
I got this working now :D
It won't set a time limit cause i don't need it. Feel free to add it, if you want.
Those items will appear in the item box. Look for the /cash flag in your launcher. Thank you Raskim for posting those infos about the paidItem thing :D
Users won't recieve a message in the chat, that they have recieved a new item!
Code:Use Telecaster DECLARE @id int; --accountid DECLARE @itemcount int; --Anzahl der Items DECLARE @item int; DECLARE @avatarid int; -----------Insert Settings here----------------- SET @item = '' --INSERT ITEM ID (e.g. 2010764 R6 Cloak) SET @itemcount = '1' --INSERT THE NUMBER OF ITEMS SELECT @avatarid = sid FROM Character WHERE name = '' --INSERT CHARACTER NAME ------------------------------------------------ SELECT @id = account_id FROM Character WHERE sid = @avatarid --Warning IF @id IS NULL BEGIN PRINT 'WARNING: This Character does not exist. No Rows affected!' RETURN END --DB Update INSERT INTO [telecaster].[dbo].[PaidItem]([account_id],[avatar_id],[avatar_name],[item_code],[item_count],[rest_item_count],[bought_time],[valid_time],[server_name],[taken_avatar_id],[taken_avatar_name],[taken_server_name],[taken_time],[taken_account_id],[confirmed],[confirmed_time]) VALUES (@id,@avatarid,NULL,@item,@itemcount,@itemcount,'2011-10-01 12:00:00.000',NULL,NULL,NULL,NULL,NULL,NULL,@id,NULL,NULL)