[Help Thread] Please post your questions here.

04/18/2015 18:34 Modamer9#4486
Quote:
Originally Posted by TheOnlyOneRaskim View Post

Btw if you want to correct me, than do it right.

The Wear info flags wich were written down from me, weren't correct.

It's like that:
gcode: 0 or 3 = player equip
one more notice ... i have item with remain_time <> 0 and i wear (player) and gcode =1 not 3 or 0
so if item has remain_time then gcode = 1 and flag =0 ????
04/18/2015 18:50 TheOnlyOneRaskim#4487
Quote:
Originally Posted by Modamer9 View Post
one more notice ... i have item with remain_time <> 0 and i wear (player) and gcode =1 not 3 or 0
so if item has remain_time then gcode = 1 and flag =0 ????
Just edit the above written Query...
04/18/2015 20:42 bertie2008#4488
Quote:
Originally Posted by ismokedrow View Post
Issue this as a query into your SQL (targeting your telecaster) and paste me the screenie of results plz. I don't have anything in my paiditem table, so I can't reproduce at the moment.
Getting the same error as this other dude

Msg 8115, Level 16, State 2, Procedure smp_check_purchased_item, Line 43
Arithmetic overflow error converting expression to data type int.

Thing is a soon as I delete the master class character, all the other characters on the same account work perfectly again
04/18/2015 20:56 ismokedrow#4489
I don't have this same issue as my server and can't reproduce it, the line it is giving an error on is like I quoted above. Maybe someone else can weigh in on this?
04/18/2015 21:20 ThunderNikk#4490
Bertie...

Could you do a "script stored procedure as create to" and choose new query window on your dbo.smp_check_purchased_item and post the results here so we can compare them to our smp.
04/19/2015 10:04 bertie2008#4491
Quote:
Originally Posted by ismokedrow View Post
I don't have this same issue as my server and can't reproduce it, the line it is giving an error on is like I quoted above. Maybe someone else can weigh in on this?
Thanks for trying, I really don't know what to do

Quote:
Originally Posted by thndr View Post
Bertie...

Could you do a "script stored procedure as create to" and choose new query window on your dbo.smp_check_purchased_item and post the results here so we can compare them to our smp.
script stored procedure result, am really hoping you see something in this lot
Other things that I have done on the server that hopefully helps sort out this problem

Lua's
Things I do on master class character,
Using GM commands, I give D3 +20 lvl 10 gear and weapon
I play around with belt pets to see results
I use buffs, know it all, and hp regen to look around underground and circus without getting killed

That's all that I can think of that I do differently on the master class that I don't do on lower lever characters.

Looking through the sq profiler results, does the date in this result look right

04/19/2015 14:34 ThunderNikk#4492
Try...

//item 910000 1

On the character you are having the master class issue with and see if you still have the same issues.
04/19/2015 17:22 bertie2008#4493
Quote:
Originally Posted by thndr View Post
Try...

//item 910000 1

On the character you are having the master class issue with and see if you still have the same issues.
I run the script, character gets the travel pass to hidden village for 30 days, nothing happens, however when i run the script add state 9004,2 31536000000, i get "you have gained the skill effect Travel Pass to Hidden Village" so looks like something is cancelling the script in the server ini lua function jts_server_hv()
add_state(9004,2,31536000000)

I am thinking of making another account, max leveling a character without master class to see if the problem pops up there as well, I would like to see if it is a level problem or a master class problem, or am I wasting my time
04/19/2015 17:26 ismokedrow#4494
I do not have the 'jts_server_hv' in any of my scripts, then again I only used the BARE MINIMUM scripts from the pack to ensure 9.1 content operated properly.
04/19/2015 17:39 bertie2008#4495
Quote:
Originally Posted by thndr View Post
Try...

//item 910000 1

On the character you are having the master class issue with and see if you still have the same issues.
Quote:
Originally Posted by ismokedrow View Post
I do not have the 'jts_server_hv' in any of my scripts, then again I only used the BARE MINIMUM scripts from the pack to ensure 9.1 content operated properly.
OK now i feel like a pawpaw, I made a new account, new character, he gets the Pass to Hidden Village, i look at the time and its valid for four hours and fifty three minutes, could this be my problem? I didn't look at the time before because I assumed that it was taking the hv pass that I put into the server ini lua "add_state(9004,2,31536000000)" my previous servers seemed to work fine with that in the lua, do I have to do it differently for 9.1

really sorry guys if this has been the problem all along:(
04/19/2015 21:54 ThunderNikk#4496
Well you see the .lua script is adding the state the HV buff...it does not add the HV item the pass.

So now you have a character that has the HV buff but the check_purchased_item is looking for the pass = 0 but on a player with the buff is_premium I think you are confusing the check_purchased_item script.

If you get what I mean.
04/20/2015 01:05 nimoht#4497
Hy it is not the lua who give 5h hv pass it 's your smp check_purchased_item . Look my thread : "small contribution " full hv pass 9.1

IF @NO_LV < 30 AND @NO_Total_JP < 100000
BEGIN
SET @OUT_PREMIUM_TICKET = 1
SET @OUT_PREMIUM_REST_TIME = 3600 * 5
END

This is the part of the smp who give you auto hv pass before lvl 30 for 5h . Read my thread apply all my smp and create an market for 910000 hv pass like i explain . If you have modified "is_premium ()" function on your lua , restore the original

Link of my thread : [Only registered and activated users can see links. Click Here To Register...]
04/20/2015 04:27 ismokedrow#4498
That was so silly of me not to have seen that, good catch nimoht. I will add a corrected version to the guide for future usage.
04/20/2015 08:04 Domesday Brock#4499
Quote:
Originally Posted by nimoht View Post
Hy it is not the lua who give 5h hv pass it 's your smp check_purchased_item . Look my thread : "small contribution " full hv pass 9.1

IF @NO_LV < 30 AND @NO_Total_JP < 100000
BEGIN
SET @OUT_PREMIUM_TICKET = 1
SET @OUT_PREMIUM_REST_TIME = 3600 * 5
END

This is the part of the smp who give you auto hv pass before lvl 30 for 5h . Read my thread apply all my smp and create an market for 910000 hv pass like i explain . If you have modified "is_premium ()" function on your lua , restore the original

Link of my thread : [Only registered and activated users can see links. Click Here To Register...]
I had done pretty much the same as Bertie "set premium is true" in the lua, I have replaced the lua with the original one.
I had already run all of ismokedrow's paid item fixes so I don't want to mess things up by running your scripts as well, I will insert the item into Arcadia market resource, add the item to an NPC and see what happens as soon as I get back home
04/21/2015 16:31 colonelx#4500
Quote:
Originally Posted by Aurorauser View Post
Sql viev player guild table and guild table and character table inner join function
i mean in lua or inside the game