• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Help guild city wars edits

You want to learn to script?
Aside from learning the language.
Read all the threads in support, not only do the threads contain posts with issues for different distros but they also contain solutions, they might even contain discussions and broken down explanations.
 
You want to learn to script?
Aside from learning the language.
Read all the threads in support, not only do the threads contain posts with issues for different distros but they also contain solutions, they might even contain discussions and broken down explanations.

I've seeing...

You are experient lua scripter, i every time saw u here, making good scripts

Could you answer 3 questions?

1- How make sings when look show whats guild own, city...
Exeple carlin
Code:
     value = i dont know

  local guildName = getGuildName(getGlobalStorageValue(value))
  if guildName then
  "City owned by guild"..guildName.."!"
  else
     "No one guild own this city!"
  end

2- setGuildExperience(playerGuild, getGuildExpRate(playerGuild) + 0.25)
Its will work? Adding +25% to all players from guild?

3- How i could create a conditional, a tile for exemple on setpin
if your guild have owned 1 city, u cant enter on this tile (just for exemple)
 
Hello , i could answer your number 3 question ...
to make this condition ..
you need to make a storage check

for example
onStepIn function , then check if player or his guild got storage of other quests ..
so if he got storage stepIn will be canceled and if not he will be teleported

so i can give you an idea
like qstorage , ostorages .. in qstorage you put the current quest storage to give a message
if another guild own this city , it will answer with guild name ..
if not it will check ostorages before teleport him for quest ..

and here is the ostorages .. because it will contain all storages of other quests
so before teleport it will make another check for ostorages ..
if he got another storage it will answer with a remind of his city
if not he will got teleported .!
 

Similar threads

Replies
8
Views
2K
Back
Top