• 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!

Windows need help with sources

Cris2387

Member
Joined
Dec 30, 2013
Messages
177
Reaction score
9
hello this is my first time editing sources haha the reason i want to edit them is because my skill script that gives skills to new players is kicking players when they first start and the reason they get a dbug is because they get the message " You have advanced skill blah blah " and they get like 100 if them and thats why they get bug and so i deleted the " send message to palyer thing " from sources but only when they get new skill i thought it was a nice solution and so i restarted my server and nothing happened it was the same. i edited this file sources/player.ccp nothing is happening please help im sure i saved it
 
I don't rlly understand what you want to get.
You want to make players start with definied skill? Or what?
 
I don't rlly understand what you want to get.
You want to make players start with definied skill? Or what?
yes yes yes and yesh! my server is kinda weird and mages are really strong at the begging and to balance that i tried give new players certain skill but when they log in they get kicked and their tibia closes and the reason is because they get bombarded with the message " You have advanced in sword skill " and to fix that i deleted the " doSendMessage " You blah blah " /> from sources haha im nub i dont know if i did the right thing and now i have to compile but hey buddy if you have another way of adding skill to players feel free to you know tell me here
 
Why dont you change your aac to give them skills?
I wouldn't delete the message, nobody will see any advance they doing, lol.
I would suggest you to change your aac instead of deleting a main part of the gameplay..
If you cant do that, I would do so players get kicked after they logged in on first login.
It would be weird, but still better then reading advancned for 30 minutes :)
Like this:
Code:
function onLogin(cid)
   local loss = getConfigValue('deathLostPercent')
   if(loss ~= nil) then
     doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
   end

   local accountManager = getPlayerAccountManager(cid)
   if(accountManager == MANAGER_NONE) then
     local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
     if(lastLogin > 0) then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
       str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
     else
       str = str .. " Please choose your outfit."
       -- doPlayerSendOutfitWindow(cid)
       doRemoveCreature(cid)
     end
 
Last edited:
hey buddy i have a problem xd the thing i downloaded doesnt look like mine, mine has \\\\\\\
Why dont you change your aac to give them skills?
I wouldn't delete the message, nobody will see any advance they doing, lol.
I would suggest you to change your aac instead of deleting a main part of the gameplay..
If you cant do that, I would do so players get kicked after they logged in on first login.
It would be weird, but still better then reading advancned for 30 minutes :)
Like this:
Code:
function onLogin(cid)
   local loss = getConfigValue('deathLostPercent')
   if(loss ~= nil) then
     doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
   end

   local accountManager = getPlayerAccountManager(cid)
   if(accountManager == MANAGER_NONE) then
     local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
     if(lastLogin > 0) then
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
       str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
     else
       str = str .. " Please choose your outfit."
       -- doPlayerSendOutfitWindow(cid)
       doRemoveCreature(cid)
     end
o.0 where would i put this code?
 
Creaturescripts/scripts/login.lua

Also, if you are using GesiorAAC you can edit the [Vocation] Samples.
 
Back
Top