Harkonnan Posted August 10, 2009 Author Share Posted August 10, 2009 I am new but I spend the last few days looking over the the main.txt. I have been unable to find any commands that relate to items ie. giving items to characters or taking them away. I also could not find any codes for picking up dropped items. I tried writing a script to pick up items using Click On but it didnt' work.Any help with GM/Admin commands or scripts I need to make them work would be greatly appreciated.If someone could write the script for item pick up using click on so I could see what I did wrong I would also appreciate that.Thanks in advance and sorry if these questions have been asked already but I used search and it took me to a different site so I figured it just best to ask here. Link to comment Share on other sites More sharing options...
Hippoman789 Posted August 10, 2009 Share Posted August 10, 2009 Not every action is VBscipt based. some of it is sourced. Link to comment Share on other sites More sharing options...
Patrick Posted August 10, 2009 Share Posted August 10, 2009 Isn't vbscript the source script? Link to comment Share on other sites More sharing options...
damian666 Posted August 10, 2009 Share Posted August 10, 2009 guys… both the source AND sadscript are VB XDDamian666 Link to comment Share on other sites More sharing options...
Patrick Posted August 10, 2009 Share Posted August 10, 2009 sadscript is a slightly modified vbscript. So sadscript doesn't work in vb I think. :huh: Link to comment Share on other sites More sharing options...
damian666 Posted August 10, 2009 Share Posted August 10, 2009 wanna bet, i just yesterday afternoon, took a sub out my main, and paste it in my server cmd's, no modification needed, AT ALL ^^Damian666 Link to comment Share on other sites More sharing options...
Patrick Posted August 10, 2009 Share Posted August 10, 2009 ^Curses. Doesn't everything I say get corrected nowadays? Link to comment Share on other sites More sharing options...
damian666 Posted August 10, 2009 Share Posted August 10, 2009 well… cant be helped i guess XDDamian666 Link to comment Share on other sites More sharing options...
Owen F Posted August 10, 2009 Share Posted August 10, 2009 On topic guys, please come on.First of all you can already pick up stuff with enter.Second of all, Godlords Inventory script does EXACTLY what you want. Link to comment Share on other sites More sharing options...
Harkonnan Posted August 10, 2009 Author Share Posted August 10, 2009 Enter didn't pick up items. I thought it did too but its not working thats why I tried to make the click on script. I will look for the inventory script. thanks for you quick reply. Link to comment Share on other sites More sharing options...
Harkonnan Posted August 10, 2009 Author Share Posted August 10, 2009 I found the inventory scripts and put them in my Main.txt like I was supposed to. Not a single one of the codes worked. I am not sure what Im doing wrong. But as a bonus the enter button picks up now.One thing i did notice is that the inventory script was written as do and while statments whereas the rest of the scrip in my Main.txt seems to be written as switch statements. Not sure how much this is like C/C++/C# but from what I can figure it should still work.Please advise. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted August 10, 2009 Share Posted August 10, 2009 @Everyone in this thread: Sadscript IS VbScript; and sadscript commands work in VB6.OP, I think you should read some tutorials on SadScript; the inventory script that Godlord made, has commands like:Call GiveItem(Index, ItemNumber, Durability)So somewhere in your Main.txt, you can use that command.If you are familiar with c-syntax, vb-syntax will be easy; go over some sadscript tutorials (preferably GodLord's), and check out the Scripting Board, as you will find all of the sadscript commands form SetPlayerLevel to ScriptSpawnNpc, as well as vb-syntax. Link to comment Share on other sites More sharing options...
scholastic Posted August 10, 2009 Share Posted August 10, 2009 isn't there a way i can edit currency types… Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 @Admiral:> @Everyone in this thread: Sadscript IS VbScript; and sadscript commands work in VB6.> OP, I think you should read some tutorials on SadScript; the inventory script that Godlord made, has commands like:> Call GiveItem(Index, ItemNumber, Durability)> > So somewhere in your Main.txt, you can use that command.> > If you are familiar with c-syntax, vb-syntax will be easy; go over some sadscript tutorials (preferably GodLord's), and check out the Scripting Board, as you will find all of the sadscript commands form SetPlayerLevel to ScriptSpawnNpc, as well as vb-syntax.Listen to him, guys.@scholastic:> isn't there a way i can edit currency types…Make a new thread please.Regards, Godlord. Link to comment Share on other sites More sharing options...
Hippoman789 Posted August 11, 2009 Share Posted August 11, 2009 Isn't it better to keep it all in one topic, reducing the amount of topics, bandwidth and such? Link to comment Share on other sites More sharing options...
Godlord Posted August 11, 2009 Share Posted August 11, 2009 @Hippoman:> Isn't it better to keep it all in one topic, reducing the amount of topics, bandwidth and such?Reduces the amount of clarity, which makes it harder to look for an answer more quickly when you have a question and are searching for it through the topics, hence why the use of valid titles is recommended.Regards, Godlord. Link to comment Share on other sites More sharing options...
Hippoman789 Posted August 11, 2009 Share Posted August 11, 2009 @Godlord:> Reduces the amount of clarity, which makes it harder to look for an answer more quickly when you have a question and are searching for it through the topics, hence why the use of valid titles is recommended.> > Regards,> Godlord.Ah, Thats what I thought you might say. Then I'll tell people that from now on. 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