Jump to content

Recommended Posts

Posted (edited)

I come to share a code that I made. It is intended for clan leaders to leave a message for their members.

 

código https://pastebin.com/raw/YACt3bjn

 

Add this to your system in commandname-e.dat

115    114    notice

htm

YEpqFHT.png & key = 22737e2a5b0d6cff46d5bd3d

 

message by clan owner

aqW2nEL.png & key = 9d5279520f3c7db2b1fda843

 

message if a member tries to create a news story

 

gcWh0La.png & key = 3bfcbf934a176d5c8120a07f

 

Edited by Williams
  • Upvote 1
Posted (edited)
+			if (clan.getMembersCount() == 0)
+			{
+				activeChar.sendMessage("You don't have any members");
+				return false;
+			}

You probably meant getOnlineMembersCount(), because getMembersCount() can't be 0.

 

That custom probably collides with retail clan notice. If you edit it form clanbbs, it will affect your usercommand. Also, a big text probably fucks up everything using ExShowScreenMessage.

Edited by Tryskell
Posted
32 minutes ago, Tryskell said:

+			if (clan.getMembersCount() == 0)
+			{
+				activeChar.sendMessage("You don't have any members");
+				return false;
+			}

You probably meant getOnlineMembersCount(), because getMembersCount() can't be 0.

 

That custom probably collides with retail clan notice. If you edit it form clanbbs, it will affect your usercommand. Also, a big text probably fucks up everything using ExShowScreenMessage.

 

For a pervert dwarf who spend his nights eating cookies you're very cool person.

  • Haha 1
Posted
40 minutes ago, Tryskell said:

You probably meant getOnlineMembersCount(), because getMembersCount() can't be 0.

getOnlineMembersCount can't be 0 either, activeChar is already 1 :D

Posted
39 minutes ago, Sahar said:

getOnlineMembersCount can't be 0 either, activeChar is already 1 :D

Everything is possible! Me is not you, so 1 - 1 = 0. Capish? :goodsir:

  • Haha 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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