Jump to content
  • 0

gold room nothing to gain


Sergardo

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

script/goldroom.txt at master · deadlybrothers/script · GitHub

hi i use this script how to remove that  You got nothing   or make sure drop of points at gold room 

gotnothinggold.PNG

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

On 10/26/2022 at 2:24 PM, kalabasa said:

if remove this like  emistry  comment

 if (.@penalty1 != 0){
    set @deduction,rand(.@maxpenalty1);
    if(@deduction == 0) set @deduction,1;   
   }
   set @gain, @gain + @bonus - @deduction;

only for deduction    you still got the  " You got nothing"

 

On 10/6/2012 at 12:19 AM, Emistry said:

remove these..

master emistry how about remove the you got nothing    imean    sure 100%  you got the gold points

 

On 10/27/2022 at 11:16 AM, Bringer said:

try this

only will not show the you got nothing   how about the sure 100%  got gold  points

Link to comment
Share on other sites

  • 0

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

how about start with reading the config inside the script?

dont turn on the penalty if you dont want it to penalize the players

https://github.com/deadlybrothers/script/blob/master/goldroom.txt#L56-L57

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

2 hours ago, Emistry said:

how about start with reading the config inside the script?

dont turn on the penalty if you dont want it to penalize the players

https://github.com/deadlybrothers/script/blob/master/goldroom.txt#L56-L57

its already 0 the penalty           the problem is not 100% you will got points    still have chance you got nothing                                                                                                                                                                                                                                     //Apply gold penalty. 0 = no 1 = yes
    set .@penalty1,0;       

Edited by Sergardo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  10
  • Reputation:   2
  • Joined:  10/21/22
  • Last Seen:  

Find this:

set @gain,rand (.@maxgaingold);

change to this:

set @gain,rand (1,.@maxgaingold);


This is to avoid getting 0 when rand is being triggered.

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  740
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

	if(@gain){
 		dispbottom "-|You got: " +@gain+ " gold| - |Total: " +gold+ " gold|- ";

	}else{
		//dispbottom "-|You got: NOTHING! |- ";
	}

try this

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