Register for your free account! | Forgot your password?

You last visited: Today at 21:40

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

Advertisement



Question.

Discussion on Question. within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
[DEV]Harmony's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 815
Received Thanks: 431
Question.

Alright I suck when it comes to SQL Scripts,

Lets say I'll make an npc which is selling candies in a certain map, lets say at undo stadium.
So as long as you stay in Undo you'll have that candie, but when you change the map, the item gets deleted in the database

Is it possible to write a script like that?

Thanks.
[DEV]Harmony is offline  
Old 04/03/2011, 03:46   #2
 
freeskier4lif3's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 231
Received Thanks: 149
Oh Hai! I guess we talked about this on msn today, so I don't need to answer you here.
freeskier4lif3 is offline  
Old 04/04/2011, 06:02   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 175
Received Thanks: 26
dont think its possible to check items on different maps.
whats about u give the candy a time till it delete it by itself ( e.g. the exp ammulets with 15 day ) so make your candy for like 10 sec so that u only can use it fast.
ihaxx is offline  
Old 04/04/2011, 06:24   #4
 
Decima's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,297
Received Thanks: 928
unfortunately, the databased isnt called at all when changing maps, so there is no way to do anything during that process in an sql script. so unless is can be scripted into the exe somehow, im afraid the answer is no.
Decima is offline  
Old 04/04/2011, 15:49   #5
 
[DEV]Harmony's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 815
Received Thanks: 431
Quote:
Originally Posted by Decima View Post
unfortunately, the databased isnt called at all when changing maps, so there is no way to do anything during that process in an sql script. so unless is can be scripted into the exe somehow, im afraid the answer is no.
Not really when changing maps, but you know as soon as the map is done loading the map changes in the user_tbl. So lets say the candies are only allowed in map 50, and as soon as the map changes in user_tbl the item gets deleted.

Even though another reason why its not possible, you have to be logged out when items get deleted through the database.

Anyways thanks for your answer.
[DEV]Harmony is offline  
Old 04/04/2011, 21:46   #6
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
yes its possible if you have two databases, but hell lot of query to write to get your client to use them two lol.
BioNicX is offline  
Old 04/04/2011, 22:31   #7
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
you can do it with jobs
DELETE ITEM IF MAPINDEX IS NOT ....
҉ THT ҉ is offline  
Old 04/05/2011, 00:02   #8
 
[DEV]Harmony's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 815
Received Thanks: 431
As I said, you can do it. But no point because the people would have to log out that the item gets deleted, the item can't be deleted while anyone is ingame.
[DEV]Harmony is offline  
Old 04/05/2011, 00:05   #9
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
Quote:
Originally Posted by [DEV]Harmony View Post
As I said, you can do it. But no point because the people would have to log out that the item gets deleted, the item can't be deleted while anyone is ingame.
what i ment is not deleted, i ment script that will use two databases.
BioNicX is offline  
Old 04/05/2011, 00:14   #10
 
[DEV]Harmony's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 815
Received Thanks: 431
Why would you use two databases? Useless, lol.
[DEV]Harmony is offline  
Old 04/05/2011, 00:17   #11
 
BioNicX's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 981
Received Thanks: 296
Quote:
Originally Posted by [DEV]Harmony View Post
Why would you use two databases? Useless, lol.
i mean script will pull out those items u want from that new database when your on that map, then when you move map , that script will change back to original one.
BioNicX is offline  
Reply


Similar Threads Similar Threads
[QUESTION]How do i bypass Xtrap for any private server?[QUESTION]
10/02/2009 - Cabal Private Server - 2 Replies
Exactly what the title says. I keep on getting an xTrap error when i try and load ANY private server that uses XTrap and it's driving me absolutely insane. I cant figure out why it's showing me the error. If anyone has any bypasser for Helix / PaRaDoX or any other server u know that has xTrap can u either PM me the bypass or post it here pls......this is driving me nuts



All times are GMT +2. The time now is 21:40.


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.