Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 15:26

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

Advertisement



[Release]Automaticly safe base spawn

Discussion on [Release]Automaticly safe base spawn within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2013
Posts: 9
Received Thanks: 57
[Release]Automaticly safe base spawn

Hi Epvp,

Automaticly spawns players to safe base location when they exit the game.

Put inside PS_GameLog>Programmabilty>Stored Procedures>dbo.usp_insert_Action_Log_E

Code:
/*Automaticly PvP Base Spawn*/
IF(@ActionType=108)
BEGIN
/*LIGHT MAPS*/
/* 1-15 PvP Zone */
Update PS_GameData.dbo.Chars
SET PosX = 410,PosY = 20, PosZ = 141
Where Map = 18 and Level <=15 and Family <=1 and Job <=5 and CharID = @CharID
/* 20-30 PvP Zone */
Update PS_GameData.dbo.Chars
SET PosX = 308,PosY = 3, PosZ = 320
Where Map = 30 and Level >= 20 and Level<=30 and Family <=1 and Job <=5 and CharID = @CharID
/*  D-Water   */
Update PS_GameData.dbo.Chars
SET PosX = 225,PosY = 27, PosZ = 1838
Where Map = 0 and Family <=1 and Job <=5 and CharID = @CharID
/* DD1 */
Update PS_GameData.dbo.Chars
SET PosX = 924,PosY = 10, PosZ = 865
Where Map = 45 and Family <=1 and Job <=5  and CharID = @CharID
/* DD2 */
Update PS_GameData.dbo.Chars
SET PosX = 903,PosY = 35, PosZ = 475
Where Map = 46 and Family <=1 and Job <=5 and CharID = @CharID
/* Jungle */
Update PS_GameData.dbo.Chars
SET PosX = 126,PosY = 9, PosZ = 454
Where Map = 47 and Family <=1 and Job <=5 and CharID = @CharID
/* Kanos Illium */
Update PS_GameData.dbo.Chars
SET PosX = 1481,PosY = 33, PosZ = 163
Where Map = 70 and Family <=1 and Job <=5 and CharID = @CharID
/* Canyon of Greed */
Update PS_GameData.dbo.Chars
SET PosX = 345,PosY = 17, PosZ = 48
Where Map = 81 and Family <=1 and Job <=5 and CharID = @CharID

/* DARK MAPS */

/* 1-15 PvP Zone */
Update PS_GameData.dbo.Chars
SET PosX = 860,PosY = 3, PosZ = 642
Where Map = 18 and Level <=15 and Family >=2 and Job <=5 and CharID = @CharID
/* 20-30 PvP Zone */
Update PS_GameData.dbo.Chars
SET PosX = 820,PosY = 32, PosZ = 760
Where Map = 30 and Level >= 20 and Level <=30 and Family >=2 and Job <=5 and CharID = @CharID
/* D-Water */
Update PS_GameData.dbo.Chars
SET PosX = 1878,PosY = 15, PosZ = 380
Where Map = 0 and Family >=2 and Job <=5 and CharID = @CharID
/* DD1 */
Update PS_GameData.dbo.Chars
SET PosX = 860,PosY = 4, PosZ = 307
Where Map = 45 and Family >=2 and Job <=5 and CharID = @CharID
/* DD2 */
Update PS_GameData.dbo.Chars
SET PosX = 930,PosY = 65, PosZ = 81
Where Map = 46 and Family >=2 and Job <=5 and CharID = @CharID
/* Jungle */
Update PS_GameData.dbo.Chars
SET PosX = 572,PosY = 6, PosZ = 194
Where Map = 47 and Family >=2 and Job <=5 and CharID = @CharID
/* Kanos Illium */
Update PS_GameData.dbo.Chars
SET PosX = 155,PosY = 39, PosZ = 175
Where Map = 70 and Family >=2 and Job <=5 and CharID = @CharID
/* Canyon of Greed */
Update PS_GameData.dbo.Chars
SET PosX = 406,PosY = 17, PosZ = 42
Where Map = 81 and Family >=2 and Job <=5 and CharID = @CharID
END
Remember : This will only works when exit the game

This Script is usefull for Ultimate Mode , This will prevent players to be killed by other faction when they login without a ResRune.

Im new at SQL , so dont judge me , i am still learning and i tought it was a usefull script for some servers.
SvHe is offline  
Thanks
12 Users
Old 10/09/2013, 07:06   #2
 
Philipp_'s Avatar
 
elite*gold: 576
Join Date: Mar 2011
Posts: 348
Received Thanks: 994
Code:
Update PS_GameData.dbo.Chars
SET PosX = 860,PosY = 3, PosZ = 642
Where Map = 18 and Level <=15 and Family >=2 and Job <=5
This will update the positions of all characters meeting the conditions in your where clause. Since you want to update the row of the character that logged off only, you should check for the equality of the CharID, too.
Add the following comparsion to your where clauses:
Code:
CharID = @CharID
Philipp_ is offline  
Thanks
3 Users
Old 10/09/2013, 10:03   #3
 
elite*gold: 0
Join Date: Oct 2013
Posts: 9
Received Thanks: 57
Quote:
Originally Posted by Philipp_ View Post
Code:
Update PS_GameData.dbo.Chars
SET PosX = 860,PosY = 3, PosZ = 642
Where Map = 18 and Level <=15 and Family >=2 and Job <=5
This will update the positions of all characters meeting the conditions in your where clause. Since you want to update the row of the character that logged off only, you should check for the equality of the CharID, too.
Add the following comparsion to your where clauses:
Code:
CharID = @CharID
Hi Philipp,

Thank you for your feedback , i will add it to Where clauses.
SvHe is offline  
Thanks
1 User
Old 10/09/2013, 10:30   #4
 
elite*gold: 0
Join Date: Aug 2013
Posts: 2,066
Received Thanks: 796
#Added to Collective-Thread
Hep is offline  
Old 10/12/2013, 14:17   #5
 
elite*gold: LOCKED
Join Date: Oct 2013
Posts: 3,414
Received Thanks: 1,844
#Added to Index.
Stureplan is offline  
Reply


Similar Threads Similar Threads
[Release]Automaticly Staff Reward via command
10/12/2013 - Shaiya PServer Guides & Releases - 3 Replies
Hi Epvp, Automaticly give staff members Donation points via command ingame : Create new column Staff in .. : ALTER TABLE .. ADD Staff int
Spawn Packet Impulse Base
07/26/2012 - CO2 Private Server - 0 Replies
I am wondering How to call the spawn packet of character when clicking the Whisper Details to View Character Gears , Class and Name.... It is impulse base. because when the character near to the other character the gear viewing is good, but when it is out of your screen or another maap the viewing gear is not right.
[How To] Spawn in der Gegnerischen Base
07/30/2010 - WarRock Guides, Tutorials & Modifications - 8 Replies
Hallo com ich werde euch nun den nug erklären, wie ihr in der gegnerischen base gespawnt werden könnt ! !!!wichtig!!! Dies geht nur wenn ihr kein premium besitz da der bug nur in explosive funktzioniert und mit premium immer ein deathmacht raum erstellt wird! 1. Schritt : ihr loggt euch ein und geht auf einen server eurer wahl! 2. Schritt : ihr drückt auf raum erstellen und dann ganz oft hintereinander die enter taste bis oben steht : raum 0 Screen: Imageshack - tutvp.png
Safe spot in Lab at archer spawn
05/23/2007 - CO2 Exploits, Hacks & Tools - 7 Replies
removed by request



All times are GMT +2. The time now is 15:26.


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.