Make it say You cannot use.
|
im making a better magic combat in emu 1.7, and should i make it so when you equip ancient staff, it opens the ancient side bar? or have it say "You cannot use blah blah blah with ancient staff"?
Make it say You cannot use.
Because they should switch to ancients that's why.
iv decided to make it switch to it. but i ran into a problem. this is my code.i get this errorCode:if(AStaff() && c.setSidebarInterface(6, 1151)) { c.setSidebarInterface(6, 12855); }Code:.\server\model\players\CombatAssistant.java:80: 'void' type not allowed here if(AStaff() && c.setSidebarInterface(6, 1151)) { ^ 1 error Press any key to continue . . .
your error is saying that u cant use a void like that...thats what booleans r for...at ur code ur saying if astaff == true basically and vodis dnt have true or false values
orCode:if(playerequipment[playerweapon] == ancientstaffid && c.setSidebarInterface(6, 1151)) { c.setSidebarInterface(6, 12855); }
??Code:if(playerequipment[playerweapon] == ancientstaffid && c.playerAncientMagics == 0) { c.setSidebarInterface(6, 12855); c.playerAncientMagics == 1; }
stil getthe stupid thing is that before this, i haveCode:------ Compiling ------ .\server\model\players\CombatAssistant.java:103: 'void' type not allowed here if((c.playerEquipment[c.playerWeapon] == 4675) && (c.setSidebarI nterface(6, 1151))) { ^ 1 error Press any key to continue . . .which includes a void...Code:if(FullDEquipped() && Misc.random(2)==1 && c.playerLevel[3] > 0 && c.playerLevel[3] < 18){ damage = Misc.random(58+calculateMeleeMaxHit()); }
CLUE:
if(AStaff() && "c.setSidebarInterface(6, 1151)") {
c.setSidebarInterface(6, 12855);
}
"c.setSidebarInterface(6, 1151)"
thats the void...that sets the interface u cant use that to determine if they r using the sidebar 1151
i understand where your going, but i dont know how i would set it up. can you help lol, ill rep you (:
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |