scripting

Forum Archive - from http://theuniversal.net
Locked
sagaro
Posts: 35
Joined: Wed Jul 26, 2006 4:19 pm

scripting

Post 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!!
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

whats the file named?
it should be servergamescript.mts
after verifying that, did you try the *reloadscript command?
sagaro
Posts: 35
Joined: Wed Jul 26, 2006 4:19 pm

Boyyah

Post 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.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

the reloadweap command was removed.
or rather, replaced with reloadscript
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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
Locked