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
Posted
7 minutes ago, SweeTs said:

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

 

You look cute in the cover picture.

Posted
37 minutes ago, Trance said:

 

You look cute in the cover picture.

Indeed, old picture, 'my' childhood :dat:

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock