There isn't a special item for "AP" as far as I know, and how to make a custom one is done in the SQL.
I can't really tell you the full way, I can tell you the partial and you figure out where to go from there, but that's about it. I've forgotten it over time.
PHP Code:
IF( @ActionType = 114 ) BEGIN IF( @Value2 = 100001 ) BEGIN UPDATE PS_UserData.dbo.Users_Master SET Point = Point + ( 100 * @Value4 ) WHERE UserUID = @UserUID END END
A little explanation is needed:
@ActionType = 114 - This means you are doing action 114 (Selling to an NPC)
@Value2 = 100001 - in action 114, Value2 = ItemID of the item being sold.
@Value4 - in action 114, Value4 is the amount sold, so I times it by 4, if more than one is sold.
Now to edit this for you, you'd need to change the 100 to your own custom amount.
Also, if you'd like to add more, you'd do it something like this
PHP Code:
IF( @ActionType = 114 ) BEGIN IF( @Value2 = 100001 ) BEGIN UPDATE ps_userdata.dbo.users_master SET point = point + ( 100 * @Value4 ) WHERE useruid = @UserUID END
IF( @Value2 = 100002 ) BEGIN UPDATE ps_userdata.dbo.users_master SET point = point + ( 100 * @Value4 ) WHERE useruid = @UserUID END END
Please note, this must be inserted in PS_GameLog.dbo.usp_Insert_Action_Log_E
Msg 137, Level 15, State 2, Line 1
Must declare the scalar variable "@ActionType".
Msg 137, Level 15, State 2, Line 3
Must declare the scalar variable "@Value2".
Msg 137, Level 15, State 2, Line 6
Must declare the scalar variable "@Value4".
Msg 137, Level 15, State 2, Line 10
Must declare the scalar variable "@Value2".
Msg 137, Level 15, State 2, Line 13
Must declare the scalar variable "@Value4".
do i delete all and put that or jsut add that to what is alredy there
Its amazing Foxyz there are probably over 20+ threads started by you asking people "where is this" when you can just as easily use the search function or look through all of the dev releases like everyone else has done in the past when creating a server. If you cant even copy and paste properly maybe you shouldn't be attempting to release a server.
What do you mean "it doesn't work"? You have to give me more than that so I can help you. Otherwise I could only give you a multitude of random answers that might not match your question.
I used that exact snippet of a script for my own server when I ran it, and I never had an issue. It just needs to be inserted into the stored procedure properly. I would post mine, but as mine is just a local, it doesn't have any of the "Dupe Fix" and I wouldn't want you to accidentally remove that if you had it in your database.
USE [PS_GameLog]
GO
/****** Object: StoredProcedure [dbo].[usp_Insert_Action_Log_E] Script Date: 02/07/2012 00:46:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF( @ActionType = 114 )
BEGIN
IF( @Value2 = 100001 )
BEGIN
UPDATE ps_userdata.dbo.users_master
SET point = point + ( 100 * @Value4 )
WHERE useruid = @UserUID
END
IF( @Value2 = 100002 )
BEGIN
UPDATE ps_userdata.dbo.users_master
SET point = point + ( 100 * @Value4 )
WHERE useruid = @UserUID
END
END
IF( @ActionType = 114 ) BEGIN IF( @Value2 = 100001 ) BEGIN UPDATE PS_UserData.dbo.Users_Master SET Point = Point + ( 100 * @Value4 ) WHERE UserUID = @UserUID END
IF( @Value2 = 100002 ) BEGIN UPDATE PS_UserData.dbo.Users_Master SET Point = Point + ( 100 * @Value4 ) WHERE UserUID = @UserUID END END
vk G Coin 20 08/17/2011 - elite*gold Trading - 0 Replies hallo verkaufe 20 gold coins gegen e-gold
angebot bitte per pn
WTS G COIN 11/18/2010 - GunZ - 1 Replies Want to sell G coin. If there is anyone interested or for more info just send a private message or something. Thanks.
WTS G COIN 11/16/2010 - Atlantica Online - 1 Replies WTS G coins. Just ask how many u want and say a price. We can negociate it. To be easier you can always pm me and then we negociate. I dont need ur id or pw game to give you the Coins. Any question feel free to do. Thanks.
G Coin 50 ^^ 08/01/2010 - WarRock Trading - 3 Replies joa weiss nich was ich dafür bekommen kann vllt 3 euro per paypal
wäre cool :D
ich mein ja diese g1 oder wie die heissen
xD
hab die mal bekommen weiss aber nichts damit anzufangen
das ist doch nen 14 stelliger code oder?
wenn nich dann weiss ich nich was das ist :D