Cellino Posted September 13, 2008 Author Share Posted September 13, 2008 In the on attack sub, Does that work with spells to? Or would I have to put it in another sub.I'm asking this because I want to put hiding / invisibility into my game, but I don't want it to last even after they attack. So, when they attack / cast a spell they become uninvisible Link to comment Share on other sites More sharing options...
dg1423 Posted September 13, 2008 Share Posted September 13, 2008 use scripted spells >_> Link to comment Share on other sites More sharing options...
shadowwulf Posted September 14, 2008 Share Posted September 14, 2008 heh its visible… not uninvisible... sorry had to pick on your for that.and how do you plan on making them invisible?you can make a blank sprite easily enough and save their regular sprite.. but the floating armor and name... how about those? Link to comment Share on other sites More sharing options...
Cellino Posted September 14, 2008 Author Share Posted September 14, 2008 Set name to nothing and I don't have paper doll. ^^> use scripted spells >_>Uh? Link to comment Share on other sites More sharing options...
shadowwulf Posted September 15, 2008 Share Posted September 15, 2008 you would have to force this in source to stop people from just making the names show.make a spell as regular just using scripted instead of all the other options.In the scriptedspells sub just make a script to:save current sprite number in an .ini.set sprite to blank sprite.possibly lock movement.have a second ability to undo everything the first one does.get fancy and make the thing break when attacked or when moving. Link to comment Share on other sites More sharing options...
Firon3 Posted September 17, 2008 Share Posted September 17, 2008 INI power…PutVar([…],GetPlayerName(index)]SetPlayerName(index, "")SetPlayerName(index, GetVar([…]))This is no exact code, and the major leak is the fact that if your player's in a guild, hes a guildname walkin around…Plus its no uses against monsters...I might come out with exact code all made with some other stuff... Later, when I'll get some free time... Link to comment Share on other sites More sharing options...
shadowwulf Posted September 18, 2008 Share Posted September 18, 2008 i am sure a source edit for a check of hidden=1 or someting in a charfile would do it. Link to comment Share on other sites More sharing options...
unnown Posted September 19, 2008 Share Posted September 19, 2008 source would be best to do this,just add an varible to the player (server side)make an new command for sadscript (server side)in the command add a line to send the info to the player to set his name, guild, sprite to 0(remember: send this to the entire map the player is on)then alter the playerwarp sub to send the info when the player leaves the map and enters a new one (server)add an check in the on attack sub (either main or source) Link to comment Share on other sites More sharing options...
Firon3 Posted September 24, 2008 Share Posted September 24, 2008 I was working on the script sadscript way a some times ago, its doable sadscriot but sure is complicated… I might find it back and post it unfinished (not used to do this) but school, job and theater takes alot of my time... a lot... 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