Page 1 of 1

scripting

Posted: Fri Jul 27, 2007 7:44 pm
by sagaro
hi sag again, how do i get this script thing to work.. maybe i have some setting turned off but i know the item names and that are right and script, looks fine to me, and my untrained eye, hehehe
check it out

Event("Useitem","Bronze Ingots")
{
*command=say %PLAYER% has made and used Bronze Ingots
*command=grantcash %PLAYER% 400
*command=grantskill Organized
}


whats wrong with it, and why when my char on world uses bronze ingots, nothin happens
i also tried

Event( "Useitem", "Bronze Ingits")
{
*command=say %PLAYER% has made and used Bronze Ingits
*command=grantcash %PLAYER% 400
*command=grantskill Organized
}
with spaces in it you see...
i dont know whats goin on, please help me!!

Posted: Fri Jul 27, 2007 9:39 pm
by zaroba
whats the file named?
it should be servergamescript.mts
after verifying that, did you try the *reloadscript command?

Boyyah

Posted: Sun Jul 29, 2007 9:29 pm
by sagaro
ok, the file name is corect, i did the whole relaodweap thing or refershs, forget right now but anyway...

is it the version ia m running, i use the latest one on here, but i knwo ther eis a beta something elsewhere.. i just dont understand..
maybe someone could just post a script file or paert of one they have for a reference to myself i can analyze it myself..

thanks.

Posted: Mon Jul 30, 2007 2:19 am
by zaroba
the reloadweap command was removed.
or rather, replaced with reloadscript

Posted: Fri Aug 03, 2007 1:15 am
by zaroba
oops....i was wrong.

weapons need to be in gamescript.mts, reloadable by the *reloadweap command
the event scripting stuff needs to be in servergamescript.mts, reloadable by the *reloadscript command