Jump to content
  • 0

RE: Script Commands Additions/Updates


Question

15 answers to this question

Recommended Posts

Posted

Uh, just a quick thought...

how about making this commands Command: addmonsterdrop and delmonsterdrop

 
add it to the db instead? just like the " mob_item_ratio "

so it'll be easier for us who doesnt have much knowledge on scripting, to use it. 

just a suggestion :)

Posted

@critica: The purpose of the commands is to make a temporary change, not a permanent one. There are already multiple methods of editing the permanent databases.

Posted

Don't know how this wasn't in the emulator for so long - it should open up a lot more scripting possibilities. ^^

isn't that we can already compare a string with < or > already ?

prontera,168,185,5	script	kjdhfksdjfh	100,{
	.@string$[0] = "asdf";
	.@string$[1] = "qwer";
	if ( .@string$[0] == .@string2$[1] )
		dispbottom "1 true";
	else
		dispbottom "1 false";
	if ( .@string$[0] < .@string$[1] )
		dispbottom "2 true";
	else
		dispbottom "2 false";
	end;
}
http://www.eathena.ws/board/index.php?s=&showtopic=180080&view=findpost&p=1311671

can already sort the string just like that

Posted

Hmm, I had no idea, since our documentation says:

Only '==' and '!=' have been tested for comparing strings. Since there's no way

to code a seriously complex data structure in this language, trying to sort

strings by alphabet would be pointless anyway.

._.

I suppose it doesn't really hurt to have the function, though, unless you disagree.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...