English Please make a script for trading between players.

3 replies
Goto Page
To the start Previous 1 Next To the start
Up
LiME1516
User
Offline Off
Hello scripters, I need your help, help me make a script. It is necessary that if you write: !trade <id> <item> <price>.
And this would happen close to the one with whom to trade. (1-5 tiles) Then the second player gets a message that the first player wants to trade. And you can !yes or !no.
Some items: Bread = {}, Antirad = {}, Vodka = {}.
(Vodka[id]=Vodka[id]+1)
I need an example of how to do this, then I'll add all the other items myself.
Write here or to me in private messages. Thanks a lot to everyone who will help.
S.T.A.L.K.E.R. RP - https://discord.gg/wQUEKSB
17.11.20 05:04:35 pm
Up
Bowlinghead
User
Offline Off
Code:
1
!trade <id> <item> <price>

If the message appears to everyone inside a 5 tile radius then what is the purpose of the id-parameter?
Share time limited free games here
17.11.20 06:08:51 pm
Up
LiME1516
User
Offline Off
@user Bowlinghead: To prevent trading across the entire map. For one player within a radius of 5 tiles.
S.T.A.L.K.E.R. RP - https://discord.gg/wQUEKSB
17.11.20 07:34:07 pm
Up
The Dark Shadow
User
Offline Off
@user LiME1516: Why are you still waiting? Nobody's gonna write you 400 lines of code, I'm even pretty sure someone wrote you more than half of it earlier and you could get the main idea from it and modify it, but you seem not to be able to. So even expect if someone else wrote you, you still don't seem to be able to do that. Instead of begging people to write to you, you could watch some tutorials and make it yourself. You can ask us as well for some help but not to write you tons of codes.
To the start Previous 1 Next To the start