Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 16:45

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

Advertisement



[Release SQL] Change startmap coords and map

Discussion on [Release SQL] Change startmap coords and map within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 11
Received Thanks: 11
Arrow [Release SQL] Change startmap coords and map

Hello, excuse my english.
I have just done a "Trigger" And "Procedure" for changing the startmap coords and map.

If you want to put the same map for all kingdom you can use this trigger
Code:
DELIMITER $$
DROP TRIGGER IF EXISTS esper $$

CREATE TRIGGER esper
BEFORE INSERT ON player
FOR EACH ROW
BEGIN
set new.x= 172428;
set new.y= 1220252;
set new.map_index= 73;
end $$
DELIMITER ;
changing the coords and map index.

However if you want to put a different map depending of the kingdom you can use the trigger and procedure which are below.

Remember you mustn't put these querys if you have in your sql player data any value of map_index = 0, you must put this update query

Code:
UPDATE player set map_index=1 where map_index=0
after inserting the code above you have to type the following trigger and procedure.

Code:
DELIMITER $$
DROP TRIGGER IF EXISTS espera $$

CREATE TRIGGER espera
AFTER UPDATE ON player_index
FOR EACH ROW
BEGIN
call proceso();
end $$
DELIMITER ;
this only call the procedure "proceso" when a new pj is created.

The procedure is typed below
Code:
delimiter $$

Drop procedure if exists `proceso` $$
CREATE
PROCEDURE `proceso`()
begin

declare reino integer;
declare ids integer;


select account_id into ids from player where player.map_index=0;
select empire into reino from player_index  where id=ids;

if reino=1 THEN
UPDATE player set x=1111 where map_index=0;
UPDATE player set y=1111 where map_index=0;
UPDATE player set map_index=1 where map_index=0;
end if;

if reino=2 THEN
UPDATE player set x=2222 where map_index=0;
UPDATE player set y=2222 where map_index=0;
UPDATE player set map_index=2 where map_index=0;
END if;

if reino=3 THEN
UPDATE player set x=3333 where map_index=0;
UPDATE player set y=2222 where map_index=0;
UPDATE player set map_index=3 where map_index=0;
end if;

end $$
delimiter ;
you must set the x coords, y coords and map_index which are in sql data of player.

"reino1"= Shinsoo
"reino2"= Chunjo
"reino3"= Jinno

Now your new PJ is created in the new coord's.

My original post is in Universojuegos.es
MAXIMAXCRAK is offline  
Thanks
4 Users
Old 08/04/2012, 18:15   #2
 
elite*gold: 1
Join Date: Apr 2012
Posts: 928
Received Thanks: 2,485
Wer will ne Wette abschließen ? Ich sage 0,7% der Com verstehen es
.Awesoome' is offline  
Thanks
3 Users
Old 08/04/2012, 18:18   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 478
Received Thanks: 790
Dachte das wird in der Game festgelegt.. Oder irre ich mich oO
Zymos is offline  
Old 08/04/2012, 18:24   #4
 
iYoshix3's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,264
Received Thanks: 2,019
Ja, die Standard Kords sind in der Game, die werden aber nur geused wenn
Mapindex != 0

Mfg
iYoshix3 is offline  
Old 08/04/2012, 18:27   #5

 
xXKimariXx's Avatar
 
elite*gold: 5
Join Date: Aug 2011
Posts: 1,130
Received Thanks: 512
wusst ich noch gar nicht
xXKimariXx is offline  
Old 08/04/2012, 18:30   #6
 
.Nagato's Avatar
 
elite*gold: 1
Join Date: Mar 2011
Posts: 1,473
Received Thanks: 1,382
Quote:
Originally Posted by .Awesoome' View Post
Wer will ne Wette abschließen ? Ich sage 0,7% der Com verstehen es
Hallo,

Hierfür muss man nichtmal SQL können.
Englisch sollte ausreichen, wobei das auch wieder so eine Sache sein kann. oó
Really nice!
.Nagato is offline  
Old 08/04/2012, 18:30   #7
 
.HC'Zeklow's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 778
Received Thanks: 456
Lol ich kapier es nicht
.HC'Zeklow is offline  
Old 08/04/2012, 18:37   #8
 
.iDamage's Avatar
 
elite*gold: 0
The Black Market: 488/0/0
Join Date: Dec 2011
Posts: 7,098
Received Thanks: 1,022
Quote:
Originally Posted by .Awesoome' View Post
Wer will ne Wette abschließen ? Ich sage 0,7% der Com verstehen es
Ich wette du bist einer von den 99,3% die es nicht verstehen

Nice, btw
.iDamage is offline  
Old 08/04/2012, 18:38   #9
 
bl4ckd3v1l's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 1,439
Received Thanks: 668
Quote:
Originally Posted by ClaayZ View Post
Lol ich kapier es nicht
Dann hättest du in der Schule im Englisch Unterricht aufpassen sollen.
Also nur mit Englisch-Kentnissen sollte das jeder vestehen!
bl4ckd3v1l is offline  
Thanks
1 User
Old 08/04/2012, 18:41   #10
 
Mashkin's Avatar
 
elite*gold: 44
Join Date: May 2010
Posts: 2,053
Received Thanks: 1,747
Quote:
Originally Posted by .Awesoome' View Post
Wer will ne Wette abschließen ? Ich sage 0,7% der Com verstehen es
Quote:
Originally Posted by .Nagato View Post
Hallo,

Hierfür muss man nichtmal SQL können.
Englisch sollte ausreichen, wobei das auch wieder so eine Sache sein kann. oó
Really nice!
DEU:
Dann gehöre ich wohl zu den ~0.4% der Community, die beides können.

MySQL-Trigger sind zwar eine tolle Sache, aber "native" Anpassung der Startkoordinaten in der Binary wäre mir doch lieber.
Von Triggern in großen, zugriffsstarken Tabellen halte ich nicht so viel, weil das der Performance schaden könnte.

ENG:
MySQL triggers are a nice feature but I would rather "natively" modify the starting coordinates in the game binary.
I don't like the idea of adding triggers to large, access rich tables because this could harm performance.
Mashkin is offline  
Old 08/04/2012, 18:53   #11
 
elite*gold: 1
Join Date: Apr 2012
Posts: 928
Received Thanks: 2,485
Das mit dem nicht verstehen war auf die Englishkenntnise bezogen und nicht auf Sql.

Quote:
Originally Posted by DamageProductions View Post
Ich wette du bist einer von den 99,3% die es nicht verstehen

Nice, btw
Du bist aber nen ganz lustiger
.Awesoome' is offline  
Thanks
1 User
Old 08/05/2012, 18:21   #12
 
elite*gold: 0
Join Date: Jan 2009
Posts: 11
Received Thanks: 11
Really this it's a good system, only uploads map_index=0 where is insert any date, no update, for this reason the speed of DB musn't be delayed (excuse for my english)
MAXIMAXCRAK is offline  
Old 08/05/2012, 18:35   #13
 
xCPx's Avatar
 
elite*gold: 20
Join Date: Jun 2011
Posts: 2,901
Received Thanks: 3,342
Hmm mal ehrlich?
Das ding hier wär mir zu doof xD
20sec in der Game suchen und man hats xD
xCPx is offline  
Thanks
2 Users
Old 08/05/2012, 20:08   #14
 
Pаylasici's Avatar
 
elite*gold: 99
Join Date: Aug 2009
Posts: 4,295
Received Thanks: 5,091
Post

Quote:
Originally Posted by .Awesoome' View Post
Wer will ne Wette abschließen ? Ich sage 0,7% der Com verstehen es
Was soll man bitte an einem "TRIGGER" nicht verstehen?

Edit: Achso, die Englischkentnisse. Ja, da hast du Recht, aber wenn man "TRIGGER" schon sieht,
dann sollte man wissen was er meint.

Quote:
Originally Posted by Zymos View Post
Dachte das wird in der Game festgelegt.. Oder irre ich mich oO
Wird es auch, such mal im Internet was ein "TRIGGER" ist bezogen auf MySQL.
Pаylasici is offline  
Old 08/05/2012, 20:09   #15
 
Ultimate™'s Avatar
 
elite*gold: 40
Join Date: Aug 2011
Posts: 453
Received Thanks: 281
ich schätze mal das es auch nicht so schwer sein sollte wie es hier die meisten sagen natürlich haben einige ihre schwierigkeiten , jedoch sollte es keinen daran hindern

danke für den release
Ultimate™ is offline  
Reply


Similar Threads Similar Threads
[Release] Alte Startmap von iMetin
03/26/2011 - Metin2 PServer Guides & Strategies - 14 Replies
Release sie mal, weil ich sie eh nicht mehr brauche. Viel Spaß damit. Screens hab ich grad keine da. Video hab ich da darf ich aber nicht posten, da da die iMetin Homepage UrL zu sehen ist. iMer
[FRAGE]Startmap!?
02/02/2011 - Metin2 Private Server - 10 Replies
Wo stellt man es ein? Auf welcher map der neu erstellte Account/Chara als erstet steht? also ich wills um stellen das nnicht mehr map 1 des jeweiligen reiches die start map ist sondern eine neutrale map kann da wer helfen?^^
Frage: Startmap ändern
12/19/2010 - Metin2 Private Server - 0 Replies
Guten Abend Com, Ich habe eine Frage: Wie kann man die Startmap ändern, sprich man wählt das Rote Reich aus und man landet auf einer anderen Map als im Roten Reich. Würde mich über Antworten freuen, Mfg, °WhiT3°
[Release] SBot Coords Database
10/29/2010 - SRO Coding Corner - 10 Replies
Hello forum, This is my first major project, I got the idea from SBot AC professional but decided to make one for the people that don't want to pay for it. So idea credit goes to theoneofgod :) SBot Coords Database http://img202.imageshack.us/img202/5734/previewit .jpg : -Grab coords directly off of the selected SBot and puts it in the database along with desired name. Note:
Screen Coords <--> Map Coords using autoit
04/21/2009 - CO2 Programming - 1 Replies
Someone might like this. I provide an example of how to convert screen coords into map coords and visa versa. So that if your using autoit or some other mouse clicking macro tool, then you can get it to accurately get the mouse coordinates to click to move to a map-coordinate location. This method works by using autoit to look at the current player coordinates (_MemoryRead()), and performing some clicks on the screen to take map coordinate samples for mouse clicks in different locations....



All times are GMT +1. The time now is 16:46.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.