coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 Hi Would This Work?Sub ScriptedTile(Index, Script) Case 1 If PlayerGuild = "Guild Here" Then Call PlayerWarp(Index, MAP, X, Y) Else Call PlayerMsg("Your guild does not have a map")Exit Sub?Thanks you the Help!{EDIT}Sub ScriptedTile(Index, Script) Case 1 If PlayerGuild = "Game Moderators" Then Call PlayerWarp(Index, 1, 1, 1) Else Call PlayerMsg("Your guild does not have a map")Exit Sub?- Corza Link to comment Share on other sites More sharing options...
Lenton Posted January 9, 2009 Share Posted January 9, 2009 **Error 1:**```If PlayerGuild = "Guild Here" Then```**Fix:**PlayerGuild is not a function, you will have to use GetPlayerGuild. Yet there isn't a function to determin what your guild map is.**Error 2:**```Call PlayerMsg("Your guild does not have a map")```**Fix:**The PlayerMsg sub should be used like this:```Call PlayerMsg(index, "Message", 2)```The number at the end is the colour of what the message will be. Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 No i ment if your guild was example it would check if it was and warp you to a map- Corza Link to comment Share on other sites More sharing options...
Lenton Posted January 9, 2009 Share Posted January 9, 2009 You can't do it as there is not a function or value to find your guilds map number. Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 no no i will put in a number like Call PlayerWarp(Index, 51, 18, 1)Thats for the example.For each new Guild ill copy the map so it can kinda be the same.Do you understand me? if you dont, i can explain it again Link to comment Share on other sites More sharing options...
Lenton Posted January 9, 2009 Share Posted January 9, 2009 OK, so what your saying is your going to manually type in the map number for each guild made in a .ini? Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 Thats an ide but i was like thinking…..:Sub ScriptedTile(Index, Script) Case 1 If PlayerGuild = "Warriors" Then Call PlayerWarp(Index, 51, 1, 1) If PlayerGuild = "Wizards" Then Call PlayerWarp(Index, 52, 1, 1) Else Call PlayerMsg("Your guild does not have a map")End IfEnd IfExit Sub? Link to comment Share on other sites More sharing options...
Lenton Posted January 9, 2009 Share Posted January 9, 2009 KK, but that's still manual. I will fix the code for you:```Case 1If GetPlayerGuild = "Example" ThenCall PlayerWarp(Index, 52, 1, 1)ElseCall PlayerMsg(index, "Your guild does not have a map.", 4)End IfExit Sub``` Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 Thanks alot, btw i just signed up on your forums :cheesy:- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 9, 2009 Share Posted January 9, 2009 Its nice knowing that players keep learning how to script^^Sigait. Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 I am trying really hard with everything but…..- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 9, 2009 Share Posted January 9, 2009 @Corza:> I am trying really hard with everything but…..> > it just doesn't measure up :sad:> > - CorzaWell try reading some tutorials or checking out some already made scripts.Scripts could help,that's the way I've learned in kinda 1 week(I'm too lazy for tutorials :P) Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 Really…Well ive tried making my own scripts.i have a huge folder full of tutorials and commandsand some of the scripts i wrote out but yet againi dont know what to do.- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 9, 2009 Share Posted January 9, 2009 @Corza:> Really…> > Well ive tried making my own scripts.> i have a huge folder full of tutorials and commands> and some of the scripts i wrote out but yet again> i dont know what to do.> > - CorzaRelax man,its no the end of the world if you can't get scripting,You'll surely learn maybe not now though I'm sure you will :).Sigait. Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 i can script (very basic) but its the simple stuff like my problem (PlayerGuild = GetPlayerGuild) and forgetting the color of the message and index that i forget :embarrassed:- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 9, 2009 Share Posted January 9, 2009 @Corza:> i can script (very basic) but its the simple stuff like my problem (PlayerGuild = GetPlayerGuild) and forgetting the color of the message and index that i forget :embarrassed:> > - CorzaDownload the Script editor with the commands and script using them It'll surely help you alot. Link to comment Share on other sites More sharing options...
Zarnick123 Posted January 9, 2009 Share Posted January 9, 2009 dude i been here 2 almost 3 years now and i just learned how to script this year. im excelling now and its actually pretty simple. right now im working on source stuff. i guess my point is just keep working hard at it. and if you want to make good scripts you have to commit time to the cause. something that may help is to take a look at the commands thread, i believe its in announcements. Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 I dont know if i should have dont this but i printed them off:embarrassed:- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 9, 2009 Share Posted January 9, 2009 @The:> dude i been here 2 almost 3 years now and i just learned how to script this year. im excelling now and its actually pretty simple. right now im working on source stuff. i guess my point is just keep working hard at it. and if you want to make good scripts you have to commit time to the cause. something that may help is to take a look at the commands thread, i believe its in announcements.Actually,thats what i said!! Link to comment Share on other sites More sharing options...
coreybock Posted January 9, 2009 Author Share Posted January 9, 2009 @Sigait:> Download the Script editor with the commands and script using them It'll surely help you alot.Doesn't the script editor come with the Server?- Corza Link to comment Share on other sites More sharing options...
Drag0n Posted January 9, 2009 Share Posted January 9, 2009 only some versions. Link to comment Share on other sites More sharing options...
coreybock Posted January 10, 2009 Author Share Posted January 10, 2009 EE 2.7?- Corza Link to comment Share on other sites More sharing options...
Sigait Posted January 10, 2009 Share Posted January 10, 2009 @Corza:> Doesn't the script editor come with the Server?> > - CorzaI mean the latest version of it dude –.--' 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