Jump to content
  • 0

Endless Tower Modify


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

How can i add or change this into account based. 

e_tower,81,105,0	script	Tower Protection Stone	406,{

	set .@party_id,getcharid(3);
	set .@p_name$,getpartyname(.@party_id);
	set .@md_name$,"Endless Tower";

	set .@etower_timer,checkquest(60200,PLAYTIME); // 12 Hours
	set .@etower_timer2,checkquest(60201,PLAYTIME); // 2 hours

	if (!instance_check_party(.@party_id,2)) {
		mes "Make or join a party with more than 1 member and try again.";
		close;
	}
	if (.@etower_timer == -1) {
		if (getcharid(3) == getpartyleader(.@party_id,2)) {

i change this

set .@party_id,getcharid(1);

into this

set .@party_id,getcharid(3);

to make it account base

 

 

then i change this

if (getcharid(0) == getpartyleader(.@party_id,2)) {

into this

if (getcharid(3) == getpartyleader(.@party_id,2)) {

to make it account base. im asking if i am doing it correctly (i am running it on a live server) that's why im asking.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Posted · Hidden by Euphy, September 7, 2014 - No reason given
Hidden by Euphy, September 7, 2014 - No reason given

This isn't possible without (likely complicated) source edits. You could do some hackish workarounds script-side, but instances are always attached to a party, and party sizes are limited.

Edit: never mind, misread. See post below.

Link to comment

  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Why not use gettimetick + your desired time delay, then add it on account variable?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...