lightXpinoy99 Posted July 25, 2008 Author Share Posted July 25, 2008 Hello. I have a problem with the Main in EE 2.7 . Everytime I switch it with the Main from a different version, it works just fine. But when I attack an NPC, it makes the attack sound and nothing else. I rechecked the NPC for all the stats for it to be killed, and they were okay. I switched the Main back to the 2.7 Main. Then after that, I can hit the NPC with no problem.I want to use the Main from EE 1.0, since it's more simpler and it contains for subs. What I don't like from the 2.7 Main is how the command scripts are written. I don't really know how to convert command scripts from older versions to 2.7\. I just want to use many command scripts like the Away Command, the Custom Message/Guild Name Script, the Guild MOTD Script, and many more.If you could please help me if there's a solution to use the EE 1.0 Main, or even write the commands in a new 2.7 Main and send it to me.Thank you very much. Link to comment Share on other sites More sharing options...
DrNova Posted July 25, 2008 Share Posted July 25, 2008 The mains arent swappable, unless you found all the changes and did it manually.Just add your old stuff into the 2.7 main Link to comment Share on other sites More sharing options...
lightXpinoy99 Posted July 25, 2008 Author Share Posted July 25, 2008 Yeah but then the script commands from the 1.0 Main have those LCase things and the LCase sub, but the 2.7 Main uses Case instead of LCase and also doesn't have the LCase sub. :sad: Link to comment Share on other sites More sharing options...
DrNova Posted July 25, 2008 Share Posted July 25, 2008 > "/warpto"> If GetPlayerAccess(Index) > 0 Then> MapNum = TextSay(1)Its just a guess, but I thinkvar = TextSay(1)automatically does all the Lcase crap, like automatically detects whats after the space.I think it was just changed to be more freindly, try tinkering with a little test bit using the new method Link to comment Share on other sites More sharing options...
lightXpinoy99 Posted July 25, 2008 Author Share Posted July 25, 2008 I don't know how to write it in the new method…I'm not really good with scripting yet..... I compared both versions and I can't find any way to convert to 2.7..... Link to comment Share on other sites More sharing options...
DrNova Posted July 25, 2008 Share Posted July 25, 2008 post the old one here and I'll give it a shot Link to comment Share on other sites More sharing options...
balliztik1 Posted July 25, 2008 Share Posted July 25, 2008 The mains aren't indentical. There are a couple subs in 2.7 that play bigger roles than they did in previous versions. OnAttack is one of them. Make sure to keep 2.7's OnAttack, OnArrowHit, PlayerHit, and HotScript subs. All the rest is replacable. So, take those subs from 2.7's main, copy them to your old one, and it should work just fine. Also, make sure to copy over the global declares at the beginning of 2.7's main, which includes OnServerLoad, OnScriptReload, and ChangeMOTD.I really don't like the setup of the new default Commands sub, personally. Many slash-commands in the database won't work with it, as they use spaces in the command title. The old one was fine. Splitting the text is handy, but not for every command. Besides, newbs to scripting won't know how to convert over. It removes the ease of the "copy and paste" commands. Link to comment Share on other sites More sharing options...
lightXpinoy99 Posted July 25, 2008 Author Share Posted July 25, 2008 I copied and pasted the Sub OnAttack, Sub OnArrowHit, Sub OnPlayerHit, and Sub Hotscript at the bottom of the old Main…..AND I CAN ATTACK NPCs WITH THE OLD MAIN!!!Thank You Very Much Balliztik!! Your my hero! :PNo need for you to try and convert it yourself DrNova. But thanks for your help too.EDIT: I don't know about the Global Delcares, the OnServerLoad, OnScriptReload and ChangeMOTD but I only put Global Declares and it worked without the rest. Do I need to put the others too? Link to comment Share on other sites More sharing options...
DrNova Posted July 25, 2008 Share Posted July 25, 2008 If you arent planning on using then, I wouldnt assume so Link to comment Share on other sites More sharing options...
balliztik1 Posted July 25, 2008 Share Posted July 25, 2008 Yeah, you'll need the OnServerLoad subs, etc, so that when those events do fire, it can register the right variables. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now