Jump to content
  • 0

how to tie 30 plot and player. without "life plot" and "group manager"?


nikas455

Question

8 answers to this question

Recommended Posts

  • 0

Plot for Life is not actually a system or something like that. It's a name for the process of saving entries to the database. Without saving entries to the database you won't be able to have persistent plots, that simple.

Link to comment
Share on other sites

  • 0

there was some function to implement in the mysql database which sets you as owner when you die -> when a new player id is added (when you die and respawn)

 

EDIT: alright girls and gals ^^

here is what i had running on my servers fine for many months...

 

its a trigger which resets you as the owner after you got respawned

CREATE TRIGGER `update_owner` AFTER INSERT ON `character_data`
 FOR EACH ROW BEGIN
    UPDATE object_data SET CharacterID = NEW.CharacterID WHERE CharacterID IN
		(SELECT CharacterID FROM character_data WHERE PlayerUID = NEW.PlayerUID)
	AND NOT (Classname LIKE '%door%' OR Classname LIKE '%vault%' OR Classname LIKE '%box%');
END

try it out... it works...

Link to comment
Share on other sites

  • 0

there was some function to implement in the mysql database which sets you as owner when you die -> when a new player id is added (when you die and respawn)

 

EDIT: alright girls and gals ^^

here is what i had running on my servers fine for many months...

 

its a trigger which resets you as the owner after you got respawned

CREATE TRIGGER `update_owner` AFTER INSERT ON `character_data`
 FOR EACH ROW BEGIN
    UPDATE object_data SET CharacterID = NEW.CharacterID WHERE CharacterID IN
		(SELECT CharacterID FROM character_data WHERE PlayerUID = NEW.PlayerUID)
	AND NOT (Classname LIKE '%door%' OR Classname LIKE '%vault%' OR Classname LIKE '%box%');
END

try it out... it works...

how to add xampp?

Link to comment
Share on other sites

  • 0

Updating database via a trigger constantly is not something i would do

i dont see any reason why not... or any problems if you do...

mysql is capable of much more than simple triggers like that without any problems...

also this method is approved by many other users which use this for a long time now...

 

but hey.... do whatever you want man ^^ i am just showing up another working alternative method here...

 

how to add xampp?

what exactly do you mean?

how to add xampp on your server?

or how to add this with xampp?

 

i for my part wouldnt use xampp at all...but thats your decision to make...

Link to comment
Share on other sites

  • 0

i dont see any reason why not... or any problems if you do...

mysql is capable of much more than simple triggers like that without any problems...

also this method is approved by many other users which use this for a long time now...

 

but hey.... do whatever you want man ^^ i am just showing up another working alternative method here...

 

what exactly do you mean?

how to add xampp on your server?

or how to add this with xampp?

 

i for my part wouldnt use xampp at all...but thats your decision to make...

or how to add this with xampp?

Sorry, not speak english

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...