VitinhooxD Posted June 30, 2009 Author Share Posted June 30, 2009 Hello everyone!I need help with a scriptCould someome make it works like that:The variable is in the server folder , guild.ini file when someone creates a guild by the npc(i have the script made but i need help with this part, but when other player creates another guild the old variable stay there,and the new variable enter toothe code is```Call PutVar( "guilds.ini" , "GUILD" , "GuildName" ,""&Value)```Thanks for helping!! Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 30, 2009 Share Posted June 30, 2009 What exactly do you need? You want to be able to read the ini file, or? Link to comment Share on other sites More sharing options...
VitinhooxD Posted June 30, 2009 Author Share Posted June 30, 2009 i want to all the guilds names be put in the ini file when the player creates de guild using the npc of guld creationThe entire code is this:``` Select Case Prompt Case 0Select Case Value'In this 1º and 2º parameters the server check that player dont have access to create a guild with the names [GM] or [MOD] then the prompt quit Case "[GM]" If GetPlayerAccess(index) <= 4 ThenCall PlayerMsg(index , "You need more access to create a guild with this name",11)ElseIf GetPlayerAccess(index) = 5 ThenCall PutVar( "guilds.ini" , "GUILD" , "GuildName" ,""&Value)Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildName" ,""&Value) Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildAccess" ,"4")Call SetPlayerGuild(index ,""& Value )Call SetPlayerGuildAccess(index , 4 )End IfEnd IfCase "[MOD]" If GetPlayerAccess(index) <= 3 ThenCall PlayerMsg(index ,"You need more acces to create a guild with this name",11)ElseIf GetPlayerAccess(index) >= 3 ThenCall PutVar( "guilds.ini" , "GUILD" , "GuildName" ,""&Value)Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildName" ,""&Value) Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildAccess" ,"4")Call SetPlayerGuild(index ,""& Value )Call SetPlayerGuildAccess(index , 4 )End IfEnd If'Here the server create the player guildCase Elseexist = GetVar("guilds.ini" ,"GUILD" , "GuildName") If exist = Value ThenCall PlayerMsg(index ,"This guild name is already in use , try other name " ,RED)End IfIf F_Check_Take(index , 1 , 10000) Then Call Take_Item(index, 1 , 10000)Call PutVar( "guilds.ini" , "GUILD" , "GuildName" ,""&Value)Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildName" ,""&Value) Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildAccess" ,"4")Call SetPlayerGuild(index ,""& Value )Call SetPlayerGuildAccess(index , 4 )ElseCall PlayerMsg(index , "You need 10000 Gold to create a guild" , RED)End IfEnd SelectCase 1Select Case ValueCase "delete" Call PutVar( "guilds.ini" , "GUILD" , "GuildName" ,"") Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildName" , "none") Call PutVar("Accounts\" & GetPlayerName(index) & ".ini" , "GUILD" , "GuildAccess" , "0") Call SetPlayerGuild(index ,"") Call SetPlayerGuildAccess(index,0)Exit Sub```I want to put in the ini fine only this Call PutVar( "guilds.ini" , "GUILD" , "GuildName" ,""&Value) but , (not only 1 guild name) , all the guilds names.Thanks! 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