Register for your free account! | Forgot your password?

You last visited: Today at 05:55

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Quest Upgrade System

Discussion on [Release] Quest Upgrade System within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1

 
elite*gold: 77
Join Date: Jan 2015
Posts: 1,314
Received Thanks: 856
[Release] Quest Upgrade System

I had some free time and i was thinking to write a procedure that upgrades your items by quests instead of using scrolls, and i have made it and tested it. it worked so i decided to release it since i don't need it.

FAQ
How does this system work?
You have to collect a certain number of a weapon, and once gained you can upgrade that count of that weapon to a newer seal of that weapon from a quest.

But i don't have upgrade quest,how to make it?
MaDenGo released it before , it is not too hard to make .

I don't like that system
gtfo without posting a stupid post.


Here is the procedure
Quote:
CREATE PROC [_AeronQuestUpgrade]

@CharID int,
@QuestID int
as
DECLARE @CharName Varchar(MAX) = (select CharName16 from SHARD.dbo._Char Where CharID = @CharID)
if(@QuestID='Your quest id')
begin
Declare @OldItemCode varchar(128)
Declare @NewItemCode varchar(128)
Declare @ItemID INT
Select @ItemID = (Select ID From SHARD.dbo._RefObjCommon Where CodeName128=@OldItemCode)
select @OldItemCode = (select codename128 from SHARD.._refobjcommon where id = @itemID)
If @OldItemCode = 'ITEM_EU_TSTAFF_10_B_RARE'
begin
set @NewItemCode = 'ITEM_EU_TSTAFF_10_C_RARE'
end
else if @OldItemCode = 'ITEM_EU_TSWORD_10_B_RARE'
begin
set @NewItemCode = 'ITEM_EU_TSWORD_10_C_RARE'
end

Declare @OldItemCount int
Select @OldItemCount = (select COUNT(Item.refitemid) from SHARD.dbo._Items as Item inner Join SHARD.dbo._Inventory as inv on item.ID64 = inv.ItemID where inv.CharID = @CharID and item.RefItemID = @ItemID and item.Serial64 >0)
if(@OldItemCount >= 5)
begin
update SHARD.dbo._Inventory set ItemID = 0
where ItemID in (SELECT TOP 5 Item.ID64 from SHARD.dbo._Items as Item
inner Join SHARD.dbo._Inventory as inv on item.ID64 = inv.ItemID
where inv.CharID = @CharID and item.RefItemID = @ItemID and item.Serial64 >0)
update SHARD.dbo._Items set Serial64 = 0 where ID64 in (SELECT TOP 5 Item.ID64 from SHARD.dbo._Items as Item
inner Join SHARD.dbo._Inventory as inv
on item.ID64 = inv.ItemID
where inv.CharID = @CharID and item.RefItemID = @ItemID and item.Serial64 >0)
exec SHARD.dbo._ADD_ITEM_EXTERN @Charname,@NewItemCode,1,0
end
end

add this to your shard.dbo._quest_manage procedure
Quote:
If @QuestID = 'Your quest id'
begin
exec _AeronQuestUpgrade @CharID , @QuestID
end
Aaron* is offline  
Thanks
7 Users
Old 02/17/2015, 01:46   #2

 
elite*gold: 77
Join Date: Jan 2015
Posts: 1,314
Received Thanks: 856
push^^
@PortalDark you should write #Approved next time
Aaron* is offline  
Old 02/17/2015, 06:59   #3
 
KingDollar's Avatar
 
elite*gold: 857
Join Date: Dec 2013
Posts: 857
Received Thanks: 679
the idea of release is good

but the code is not good

as i see you are using a very basic way to code
you have a many mistakes in your code

well you have to train more and study as hard to reach a good level

but for a start - not bad
KingDollar is offline  
Thanks
2 Users
Old 02/17/2015, 07:46   #4
 
bestprem's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 353
Received Thanks: 199
How many cheaters will cheat,,,
bestprem is offline  
Old 02/17/2015, 17:04   #5
 
Storxy_'s Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 204
Received Thanks: 404
Quote:
Originally Posted by Alexiuns* View Post
the idea of release is good

but the code is not good

as i see you are using a very basic way to code
you have a many mistakes in your code

well you have to train more and study as hard to reach a good level

but for a start - not bad
first bug with this code
(the weapons must be with the same status)
Storxy_ is offline  
Thanks
1 User
Old 02/17/2015, 17:35   #6


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
Well it won't even work since you never assigned a value to @OldItemCode xD
​Exo is offline  
Old 02/17/2015, 18:40   #7

 
elite*gold: 77
Join Date: Jan 2015
Posts: 1,314
Received Thanks: 856
whoever is going to use it, he should fix some mistakes in it. of course im not going to release my full work that took some of my time^
Aaron* is offline  
Old 02/18/2015, 02:14   #8
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,195
Quote:
Originally Posted by Aeron* View Post
whoever is going to use it, he should fix some mistakes in it. of course im not going to release my full work that took some of my time^
so why you release something not even work ?
Crue* is offline  
Thanks
2 Users
Old 02/18/2015, 15:45   #9

 
elite*gold: 77
Join Date: Jan 2015
Posts: 1,314
Received Thanks: 856
Okay i have fixed the procedure now, you are able to use it without fixing it.
haters should stop hating now.
Aaron* is offline  
Old 02/18/2015, 16:27   #10
 
bestprem's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 353
Received Thanks: 199
Quote:
Originally Posted by Aeron* View Post
Okay i have fixed the procedure now, you are able to use it without fixing it.
haters should stop hating now.
so put this ***** at ur new server, if u did i promise i will play sro again specially for you even if
bestprem is offline  
Old 02/18/2015, 17:34   #11


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
PHP Code:
If @OldItemCode 'ITEM_EU_TSTAFF_10_B_RARE'
begin
set 
@NewItemCode 'ITEM_EU_TSTAFF_10_C_RARE'
end
else if @OldItemCode 'ITEM_EU_TSWORD_10_B_RARE'
begin
set 
@NewItemCode 'ITEM_EU_TSWORD_10_C_RARE'
end 
TIP: This check is useless since @OldItemCode was not assigned.

And since the two variables Old/New has no values then the whole thing won't work.
​Exo is offline  
Thanks
1 User
Old 02/18/2015, 21:15   #12

 
TheRunner's Avatar
 
elite*gold: 50
Join Date: Jan 2015
Posts: 813
Received Thanks: 237
Thanks for Share it
TheRunner is offline  
Old 02/18/2015, 21:17   #13
 
Royalblade*'s Avatar
 
elite*gold: 85
Join Date: Feb 2014
Posts: 1,055
Received Thanks: 1,643
Utter bullshit in its' purest form. Welcome to stupidity.

May I ask where you are from Aeron?

Oh and you can do this in one line. Well two lines if you put an IF statement.
Royalblade* is offline  
Thanks
2 Users
Old 02/18/2015, 21:32   #14
 
ILowe's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 677
Received Thanks: 29
item slot ?
ILowe is offline  
Old 02/19/2015, 01:47   #15

 
Bocc1337's Avatar
 
elite*gold: 737
Join Date: Oct 2007
Posts: 730
Received Thanks: 133
Well i tried it and it works perfect for me...
Bocc1337 is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Pet System Advanced quest
04/18/2020 - Metin2 PServer Guides & Strategies - 120 Replies
hi all, I anticipate that the quest is not quite complete as it is a job that I left a few weeks and I do not think that will complete only for lack of desire. What is missing: to complete the quest really miss a few functions including management and summon pet horse in the application of the bonus for the fighting style I think there is nothing more to add (if I remember correctly). the quest is very flexible, you can add different fighting styles you find already made ​​2 as an...
[RELEASE] Tages Quest System
04/22/2014 - Metin2 PServer Guides & Strategies - 9 Replies
Hallo. Ich Release mein Tages Quest System dieses brauche ich nicht mehr. Vl können viele damit etwas anfangen. --] quest sub_quest_kill begin state start begin when login or levelup with not pc.is_gm() begin local level = {10,20,30,40,50,55,60,65,70,75,80,85,90,95} local qstate = pc.getqf("quest_state")+1
[Release] Verwarn-System(Quest)
01/10/2014 - Metin2 PServer Guides & Strategies - 57 Replies
Hallo Freunde :rolleyes:, ich habe mal wieder was für euch. Es ist ein Verwarn-System ich habe es geschrieben da ihr das wahrscheinlich auch kennt ein User wird beleidigt und die GM´s können nichts machen außer vllt. Chatblock. So hat mann die Gelegenheit als Teamler einen User zu verwarnen nach 3,5,7 und 10 Verwarnungen wird das System automatisch Aktiv und je nach Verwarnung gibt es eine Strafe z.b Verwarnungen|Strafe 3|3h Bann 5|1 Tages Bann 7|3 Tages Bann 10|Perma. Bann Ihr...
★ReVolt-Network★ Cap100- Upgrade System Weapon - Job Based - Free 10k Silk -Quest
09/30/2013 - SRO PServer Advertising - 8 Replies
http://im31.gulfup.com/mnq67.png ReVolt-Network Gaming Network is a network which tries so hard to create new legacy of mmorpg game play system . In fact , The legacy won't be changed without someone who force it to change .. We , The team of ReVolt-Network Gaming Network CO. transforming the road of play in Silkroad Online to a new management of trustful , hopeful predictions . http://img716.imageshack.us/img716/7955/articlese parator.png Hello Everyone, We are...
[QUEST-RELEASE]Auction System
04/06/2013 - Metin2 PServer Guides & Strategies - 8 Replies
Hi epvp, About quest: It's very simple script in lua for metin2, from AzorisMt2. The script is very short, it have only 1100 line. The source code by: masodikbela, from hungary. If be more than 50 records in the tables, it will very laggy Use: In the rar archive are two .sql files, you have to put these tables into the player database.



All times are GMT +2. The time now is 05:55.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.