Jump to content
  • 0

Woe Point exchange to item


Dark8008

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  34
  • Reputation:   0
  • Joined:  08/31/15
  • Last Seen:  

I use woe point from this script -> https://rathena.org/board/topic/78057-woe-point-system/

prontera,155,181,5	script	Woe Points	100,{
	.@nb = query_sql( "select name, woe_points from guild order by woe_points desc limit 3", .@guild_name$, .@points );
	for ( .@i = 0; .@i < .@nb; .@i++ ) {
		if ( !.@points[.@i] ) break;
		mes ( .@i +1 )+". "+ .@guild_name$[.@i] +" -> "+ .@points[.@i];
	}
	close;
OnClock1930:
OnClock2000:
OnClock2030:
OnClock2100:
	for ( .@i = 0; .@i < 30; .@i++ ) {
		.@castle_guild_id = getcastledata( getvariableofnpc( .Castles$[.@i], "WOE_CONTROL" ), 1 );
		if ( getvariableofnpc( .Active[0], "WOE_CONTROL" ) & 1 << .@i && .@castle_guild_id )
			query_sql "update guild set woe_points = woe_points +1 where guild_id = "+ .@castle_guild_id;
	}
	end;
OnBreakEmp: // put doevent under OnAgitBreak ...
	query_sql "update guild set woe_points = woe_points +1 where guild_id = "+ getcharid(2);
	end;
}

But i don't know how to let this point to use exchange to other item, thank all !

Edited by Dark8008
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  34
  • Reputation:   0
  • Joined:  08/31/15
  • Last Seen:  

But the point in that script are from SQL Query, so still can use point shop sir ?

Bump, anyone help !!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

You need to actually assign the points to the guild leader themselves, not only the guild. This script assigns the points to the guild, not the to the guild master in which case, it can't be spend by the players.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.01
  • Content Count:  34
  • Reputation:   0
  • Joined:  08/31/15
  • Last Seen:  

You need to actually assign the points to the guild leader themselves, not only the guild. This script assigns the points to the guild, not the to the guild master in which case, it can't be spend by the players.

So how sir, do you have any script to do that ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.02
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Sorry I don't have it. It is also quite complicated to implement it.

Link to comment
Share on other sites

  • -1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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...