Blockland Forums > Modification Help
Add-on won't appear on the add-on list.
Honorable:
Okay so, I made a add-on but it won't appear on the add-on list. I remembered that I knew how to fix it, but I can't remember how I did it.
By the way, the search button is gay. I hate using it.
Edit: Forgot to include script. I am making a MORPG.
Description.txt
Title: HonorMORPG
Author: Honor
Description: MORPG Midevil-Online-Role-Play-Game.
hrpg_commands.cs
function serverCmddisplayHP(%client)
{
%client.sendHonorMORPGstatus();
}
hrpg_main.cs
package Honormain_Package
{
function GameConnection::spawnPlayer(%this)
{
parent::spawnPlayer(%this);
}
function GameConnection::sendHonorMORPGstatus(%this)
{
if(!%this.Gold)
%this.Gold = 0;
%msg = "<font:arial bold:14>\c6<color:F0FF00>Gold:"@ %this.Gold @".";
commandtoClient(%this, 'bottomPrint', %msg, 10);
}
};
activatePackage(Honormain_Package);
server.cs
//DO NOT EDIT ANY OF THE FILES UNLESS YOU HAVE A BACKUP!
//Main Files.
exec("./hrpg_main.cs");
//Command Files.
exec("./hrpg_commands.cs");
otto-san:
Do you have description.txt?
Honorable:
Yes, I do.
jes00:
What is the syntax error the console says? Oh and does it have a namecheck.txt?
otto-san:
Why have you got gameConnection::spawnPlayer in a package in which it only calls the parent?
Remove that, that's unnecessary.
Also,
%client.sendHonorMORPGstatus();
Should be:
sendHonorMORPGstatus(%client);