Bug (Perfect_Orange_Stat_Services) [help]

05/05/2015 19:35 SkuulCandy#1
Hi epvp, i have a bug with the Perfect_Orange_Stat_Services.
1st time, it's worked.. 4 day after, bug.. i have deleted and re-execute correct script (chage QuestID, change id of runes, change Type values) bug again..
The content of script :

05/05/2015 20:38 Cansas59#2
this script is working fine...which bug you have?

you have edit the NPC ID?
05/05/2015 20:51 SkuulCandy#3
My rune is still there after the relog . I have taken the quest and well placed in the correct location.
05/05/2015 21:11 Cansas59#4
make relogg?
05/05/2015 22:34 SnickQ#5
Try this
Code:
delete form PS_GameData.dbo.UserStoredItem
Where UserUID=@UserUID and slot='1' and ItemID='Here runes ID'
05/06/2015 13:17 SkuulCandy#6
Msg 137, Level 15, State 2, Line 2
Must declare the scalar variable "@UserUID".

Quote:
Originally Posted by SnickQ View Post
Try this
Code:
delete form PS_GameData.dbo.UserStoredItem
Where UserUID=@UserUID and slot='1' and ItemID='Here runes ID'

This ?

Or this in the trigger ?
05/06/2015 14:43 SnickQ#7
Quote:
Originally Posted by SkuulCandy View Post


You can't use this without
Code:
where UserUID=@UserUID
because this del all rune from WH with all players
05/06/2015 14:48 SkuulCandy#8
I integre this on new query or on the trigger ?
05/06/2015 16:37 SnickQ#9
In trigger
05/06/2015 16:49 SkuulCandy#10
I have 8 runes. If i declare 1 rune it's not work 100%
05/10/2015 18:17 SkuulCandy#11
#up
I have clear my PS_GameData and re-execute this triger and now it's work.
06/22/2015 20:50 [Alcatraz]#12
usually quest version of game mods can be troubling here is why

1: ps_game.exe will auto update some game info about every 5 mins even with out a relog

2: The requirements aren't met making the quest that should have been delete to stay in the charquest table

fixes for the common problems

1: when editing the quest details in the npcquest.sdata add a 1 min timer or delay this will cancel out the quest if a relog isn't completed in the set time reason for this is the ps_game.exe will auto update some info in the database with out a relog after a period of time adding the delay to the quest will clear the quest before its updates in the database if a relog isn't complete in the requested time fixing this problem

2: a lot of times people will write the delete quest part of the script in the main code for the if statement when the requirements are met but will forget to add the delete quest statement after that if the quest requirements aren't met by putting this after the script you added for the trigger or if else where

Else if @QuestID = 1720
begin
Delete
FROM PS_GameData.dbo.CharQuest
WHERE QuestID = 1720
End

this statement will make sure the quest is deleted no matter if it passed the requirements to complete or not making it where players can redo the quest if needed don't forget to change the quest number to your quest number

note I haven't tried the current version of oj script your using here but after reading it I see one of my scripts works the same way my advice on this script is to add the time delay in the npcquest.sdata if the player waits to long before doing the relog the ps_game.exe will auto update it in the database causing the trigger to fail and the quest getting stuck in the table
06/23/2015 07:41 SkuulCandy#13
Yes but i hasn't set bonif max of some items to other value like 0 :3